nixos-config/linux/singularity/headscale.nix
2023-11-27 21:44:04 -08:00

18 lines
390 B
Nix

{ config, ... }:
{
services = let const = config.constants; in {
headscale = {
enable = true;
address = const.localhost;
port = 27327;
settings.server_url = "https://headscale.${const.domain}";
};
tailscale = {
enable = true;
extraUpFlags = [ "--advertise-exit-node" ];
port = 27919;
useRoutingFeatures = "both";
};
};
}