mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Auto reconnect tailscale on auth key change
This commit is contained in:
parent
433ab8d024
commit
4e3d826c14
1 changed files with 1 additions and 2 deletions
|
|
@ -10,14 +10,13 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
sops.secrets.tailscale-auth-key = { };
|
||||
sops.secrets.tailscale-auth-key.restartUnits = [ "tailscaled-autoconnect.service" ];
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
|
||||
authKeyFile = config.sops.secrets.tailscale-auth-key.path;
|
||||
openFirewall = true;
|
||||
permitCertUid = "root";
|
||||
|
||||
useRoutingFeatures = if cfg.exitNode.enable then "server" else "client";
|
||||
extraUpFlags = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue