From 9866d3d64d414e13070075d686760615ffb21517 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 13 Apr 2022 10:10:00 -0700 Subject: secrets: fix the path to the ssh key --- modules/secrets/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/secrets') 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" ]); }; } -- cgit 1.4.1