NixServerConfig/module/tailscale.nix
2025-12-22 02:12:52 +01:00

20 lines
369 B
Nix

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