NixServerConfig/module/tailscale.nix

20 lines
335 B
Nix

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