nix-stuff/roles/server/headscale.nix
Toast 34e1dd0bfc Server/headscale: override local dns
For some reason extra dns records don't apply without the override
2024-11-03 01:19:30 +01:00

24 lines
505 B
Nix

{...}: {
services.headscale = {
enable = true;
settings = {
server_url = "https://headscale.toast003.xyz";
ip_prefixes = [
"100.100.0.0/16"
];
dns_config = {
base_domain = "tailscale";
nameservers = ["9.9.9.9"];
override_local_dns = true;
};
};
};
services.caddy = {
virtualHosts.headscale = {
hostName = "headscale.toast003.xyz";
extraConfig = ''
reverse_proxy localhost:8080
'';
};
};
}