Add ability to modify Tailscale configurations without tailnet reconnection

This commit is contained in:
SebastianStork 2024-08-18 15:10:50 +02:00
parent 187704b151
commit 0197336534

View file

@ -17,10 +17,10 @@ in
authKeyFile = config.sops.secrets.tailscale-auth-key.path; authKeyFile = config.sops.secrets.tailscale-auth-key.path;
openFirewall = true; openFirewall = true;
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client"; useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
extraUpFlags = [ extraUpFlags = [ "--reset=true" ];
"--reset=true" extraSetFlags = [
(lib.mkIf cfg.ssh.enable "--ssh") "--ssh=${lib.boolToString cfg.ssh.enable}"
(lib.mkIf cfg.exitNode.enable "--advertise-exit-node") "--advertise-exit-node=${lib.boolToString cfg.exitNode.enable}"
]; ];
}; };
}; };