NixServerConfig/module/tailscale.nix
2025-12-21 20:37:17 +01:00

20 lines
363 B
Nix

{ config, lib, pkgs, ... }:
lib.mkIf config.sTAILSCALE.enable {
services.tailscale = {
enable = true;
extraDaemonFlags = [
"--no-logs-no-support"
];
extraSetFlags = [
"--ssh=false"
];
useRoutingFeatures = "server";
};
networking.firewall = {
allowedTCPPorts = [ 443 ];
allowedUDPPorts = [ 41641 3478 ];
};
}