diff --git a/hosts/Alaska/modules/headscale.nix b/hosts/Alaska/modules/headscale.nix index 1500ad7..7507c24 100644 --- a/hosts/Alaska/modules/headscale.nix +++ b/hosts/Alaska/modules/headscale.nix @@ -18,7 +18,22 @@ in { base_domain = baseDomain; extra_records = tailscale_dns_entries; }; + derp = { + auto_update_enable = true; + update_frequency = "24h"; + }; }; }; environment.systemPackages = [ config.services.headscale.package ]; + + services.nginx.virtualHosts = { + "headscale.nickiel.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://127.0.0.1:${ toString config.services.headscale.port }"; + proxyWebsockets = true; + }; + }; + }; } diff --git a/hosts/Alaska/modules/nginx.nix b/hosts/Alaska/modules/nginx.nix index a1c67b6..d931361 100644 --- a/hosts/Alaska/modules/nginx.nix +++ b/hosts/Alaska/modules/nginx.nix @@ -50,15 +50,6 @@ locations."/".proxyPass = "http://127.0.0.1:3001"; }; - "headscale.nickiel.net" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://127.0.0.1:${ toString config.services.headscale.port }"; - proxyWebsockets = true; - }; - }; - }; }; }