about summary refs log tree commit diff
path: root/modules/secrets
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-13 10:10:00 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-13 10:10:00 -0700
commit9866d3d64d414e13070075d686760615ffb21517 (patch)
tree3aa729daeaafbc9f9637e193ab74e99f077dca1b /modules/secrets
parentsecrets: load ssh key only if it exists (diff)
downloadworld-9866d3d64d414e13070075d686760615ffb21517.tar.gz
secrets: fix the path to the ssh key
Diffstat (limited to 'modules/secrets')
-rw-r--r--modules/secrets/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/secrets/default.nix b/modules/secrets/default.nix
index 55730ea..556bf32 100644
--- a/modules/secrets/default.nix
+++ b/modules/secrets/default.nix
@@ -1,6 +1,5 @@
 { config, inputs, lib, options, ... }:
-
-{
+with builtins; {
   imports = [ inputs.agenix.nixosModules.age ];
 
   config.age = {
@@ -18,7 +17,7 @@
       secrets = import ./secrets.nix;
     in lib.mapAttrs' convertSecrets secrets;
 
-    identityPaths = options.age.identityPaths.default
-      ++ (filter pathExists [ "${config.user.home}/.ssh/id_ed25519" ]);
+    identityPaths = options.age.identityPaths.default ++ (filter pathExists
+      [ "${config.users.users.fcuny.home}/.ssh/id_ed25519" ]);
   };
 }