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;
openFirewall = true;
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
extraUpFlags = [
"--reset=true"
(lib.mkIf cfg.ssh.enable "--ssh")
(lib.mkIf cfg.exitNode.enable "--advertise-exit-node")
extraUpFlags = [ "--reset=true" ];
extraSetFlags = [
"--ssh=${lib.boolToString cfg.ssh.enable}"
"--advertise-exit-node=${lib.boolToString cfg.exitNode.enable}"
];
};
};