Remove unneeded secret fallback paths

This commit is contained in:
SebastianStork 2025-04-09 18:14:12 +02:00
parent 8a4ca50606
commit dd03ad4fde
2 changed files with 21 additions and 28 deletions

View file

@ -23,13 +23,11 @@ in
};
config = lib.mkIf cfg.enable {
sops.secrets = lib.optionalAttrs config.myConfig.sops.enable {
"tailscale-auth-key" = { };
};
sops.secrets."tailscale-auth-key" = { };
services.tailscale = {
enable = true;
authKeyFile = config.sops.secrets."tailscale-auth-key".path or "/run/secrets/tailscale-auth-key";
authKeyFile = config.sops.secrets."tailscale-auth-key".path;
openFirewall = true;
useRoutingFeatures = if (cfg.exitNode.enable || (cfg.serve != null)) then "server" else "client";
extraUpFlags = [ "--reset=true" ];