nixos-config/linux/singularity/headscale.nix

19 lines
394 B
Nix
Raw Normal View History

2024-08-14 11:14:20 -07:00
{config, ...}: {
2023-12-06 21:46:16 -08:00
services = {
2023-12-06 23:34:51 -08:00
headscale = with config.constants; {
2023-11-27 21:44:04 -08:00
enable = true;
2023-12-06 23:34:51 -08:00
address = localhost;
port = port.headscale;
2024-10-10 21:28:09 -07:00
settings = {
dns.base_domain = "tailscale.${domain}";
server_url = "https://headscale.${domain}";
};
2023-11-27 21:44:04 -08:00
};
tailscale = {
enable = true;
port = 27919;
useRoutingFeatures = "both";
};
};
}