diff --git a/modules/system/sops.nix b/modules/system/sops.nix index 4a471f0..0975fe7 100644 --- a/modules/system/sops.nix +++ b/modules/system/sops.nix @@ -31,7 +31,9 @@ in config = lib.mkIf cfg.enable { sops = { - age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + age.sshKeyPaths = [ + "${lib.optionalString config.custom.impermanence.enable "/persist"}/etc/ssh/ssh_host_ed25519_key" + ]; defaultSopsFile = absoluteSecretsPath; }; };