blob: 994c7a843ac5beadd084c4eb4a52ca67f65753c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{
flake.modules.nixos.tailscale = { config, ... }: {
services.tailscale.enable = true;
networking.nftables.enable = true;
networking.firewall = {
enable = true;
trustedInterfaces = [ config.services.tailscale.interfaceName ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
systemd.services.tailscaled.serviceConfig.Environment = [
"TS_DEBUG_FIREWALL_MODE=nftables"
];
};
}
|