From 9f884399aa9aac6a054beeababa2fe4351c261c1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 13 Apr 2022 10:06:36 -0700 Subject: secrets: load ssh key only if it exists --- modules/secrets/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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" ]); }; } -- cgit 1.4.1