mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Remove unneeded secret fallback paths
This commit is contained in:
parent
8a4ca50606
commit
dd03ad4fde
2 changed files with 21 additions and 28 deletions
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue