{ outputs, constants, ... }: { imports = [ outputs.nixosModules.headplane ]; services.headplane = { enable = true; port = constants.services.headplane.port; settings = { headscale = { url = "http://127.0.0.1:${toString constants.services.headscale.port}"; public_url = "https://${constants.services.headscale.fqdn}"; config_strict = false; }; }; }; services.nginx.virtualHosts."${constants.services.headplane.fqdn}" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://127.0.0.1:${toString constants.services.headplane.port}"; }; }; }