nixos-configuration/nixosConfigurations/hetzner-vpn2/headscale.nix
Vinzenz Schroeter 24b0fcf632 add headscale
2026-01-15 23:22:27 +01:00

26 lines
570 B
Nix

let
headscale-port = 8668;
in
{
services = {
headscale = {
enable = true;
address = "localhost";
port = headscale-port;
settings = {
server_url = "https://headscale.zerforschen.plus";
dns = {
override_local_dns = false;
base_domain = "high-gravity.space";
};
};
};
nginx.virtualHosts."uplink.darkest.space" = {
addSSL = true;
enableACME = true;
locations = {
"/".proxyPass = "http://localhost:${builtins.toString headscale-port}";
};
};
};
}