puter/common/tailscale.nix
2025-03-30 15:58:29 +00:00

18 lines
387 B
Nix

{config, ...}: {
services.tailscale = {
enable = true;
openFirewall = true;
};
networking.firewall = {
trustedInterfaces = [
config.services.tailscale.interfaceName
];
# Required to connect to Tailscale exit nodes
checkReversePath = "loose";
interfaces.${config.services.tailscale.interfaceName} = {
allowedTCPPorts = [4000];
};
};
}