nixos-config/linux/singularity/headscale.nix
2025-06-08 13:24:51 -05:00

21 lines
457 B
Nix

{config, ...}: {
services = {
headscale = with config.constants; {
enable = true;
address = localhost;
port = port.headscale;
settings = {
dns = {
base_domain = "tailscale.${domain}";
override_local_dns = false;
};
server_url = "https://headscale.${domain}";
};
};
tailscale = {
enable = true;
port = 27919;
useRoutingFeatures = "both";
};
};
}