diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-13 10:06:36 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-13 10:06:36 -0700 |
commit | 9f884399aa9aac6a054beeababa2fe4351c261c1 (patch) | |
tree | ea024d93e59e498413c90fa85429a6c2007e240c /modules/secrets | |
parent | users: add myself to the group 'nas' (diff) | |
download | world-9f884399aa9aac6a054beeababa2fe4351c261c1.tar.gz |
secrets: load ssh key only if it exists
Diffstat (limited to 'modules/secrets')
-rw-r--r-- | modules/secrets/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/secrets/default.nix b/modules/secrets/default.nix index e6f3a7b..55730ea 100644 --- a/modules/secrets/default.nix +++ b/modules/secrets/default.nix @@ -19,6 +19,6 @@ in lib.mapAttrs' convertSecrets secrets; identityPaths = options.age.identityPaths.default - ++ [ "/home/fcuny/.ssh/id_ed25519" ]; + ++ (filter pathExists [ "${config.user.home}/.ssh/id_ed25519" ]); }; } |