about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-13 10:06:36 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-13 10:06:36 -0700
commit9f884399aa9aac6a054beeababa2fe4351c261c1 (patch)
treeea024d93e59e498413c90fa85429a6c2007e240c
parentusers: add myself to the group 'nas' (diff)
downloadworld-9f884399aa9aac6a054beeababa2fe4351c261c1.tar.gz
secrets: load ssh key only if it exists
Diffstat (limited to '')
-rw-r--r--modules/secrets/default.nix2
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" ]);
   };
 }