mirror of
https://github.com/callumio/nixfiles.git
synced 2026-05-06 11:08:09 +01:00
24 lines
558 B
Nix
24 lines
558 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";
|
|
override_local_dns = false;
|
|
};
|
|
|
|
ip_prefixes = "100.64.0.0/10";
|
|
};
|
|
};
|
|
cloudflare-dyndns.domains = [domain];
|
|
caddy.virtualHosts.${domain}.extraConfig = ''
|
|
reverse_proxy localhost:${toString config.services.headscale.port}
|
|
'';
|
|
};
|
|
}
|