diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-13 10:10:00 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-13 10:10:00 -0700 |
commit | 9866d3d64d414e13070075d686760615ffb21517 (patch) | |
tree | 3aa729daeaafbc9f9637e193ab74e99f077dca1b /modules | |
parent | secrets: load ssh key only if it exists (diff) | |
download | world-9866d3d64d414e13070075d686760615ffb21517.tar.gz |
secrets: fix the path to the ssh key
Diffstat (limited to 'modules')
-rw-r--r-- | modules/secrets/default.nix | 7 |
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" ]); }; } |