NixServerConfig/module/tailscale.nix

19 lines
352 B
Nix

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