mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 11:39:19 +00:00
21 lines
500 B
Nix
21 lines
500 B
Nix
{config, ...}: let
|
|
domain = "mesh.cleslie.uk";
|
|
in {
|
|
services = {
|
|
headscale = {
|
|
enable = true;
|
|
address = "0.0.0.0";
|
|
port = 8080;
|
|
settings = {
|
|
server_url = "https://${domain}";
|
|
dns = {base_domain = "net.cleslie.uk";};
|
|
|
|
ip_prefixes = "100.64.0.0/10";
|
|
};
|
|
};
|
|
cloudflare-dyndns.domains = [domain];
|
|
caddy.virtualHosts.${domain}.extraConfig = ''
|
|
reverse_proxy localhost:${toString config.services.headscale.port}
|
|
'';
|
|
};
|
|
}
|