From 055aea08f91823d4ad32c124fe06e8bd07f2e5c7 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Fri, 5 Dec 2025 22:44:28 +0000 Subject: fixing some headscale settings with update --- modules/nixos/headscale.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/nixos/headscale.nix b/modules/nixos/headscale.nix index 069defc..f951043 100644 --- a/modules/nixos/headscale.nix +++ b/modules/nixos/headscale.nix @@ -12,9 +12,15 @@ in { port = 8080; settings = { logtail.enabled = false; - server_url = "https://${subDomain}"; + server_url = "https://headscale.${domain}:8081"; dns = { base_domain = "${subDomain}"; + nameservers.global = [ + "1.1.1.1" + "9.9.9.9" + "2606:4700:4700::1111" + "2606:4700:4700::1001" + ]; extra_records = [ { name = "git.${domain}"; @@ -40,6 +46,9 @@ in { virtualHosts.${subDomain}.extraConfig = '' reverse_proxy localhost:${toString config.services.headscale.port} ''; + virtualHosts."headscale.${domain}".extraConfig = '' + reverse_proxy localhost:8081 + ''; }; }; -- cgit v1.2.3