From 12b4c4c01385c66978f9970abb920ec571381202 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Tue, 31 May 2022 16:22:47 +0200 Subject: [PATCH] Add option for sshKeyPaths in sops --- modules/secrets.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/secrets.nix b/modules/secrets.nix index c9bf130..3e9fafe 100644 --- a/modules/secrets.nix +++ b/modules/secrets.nix @@ -12,6 +12,10 @@ with lib; { age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; age.keyFile = "/var/lib/sops-nix/key.txt"; age.generateKey = true; + gnupg.sshKeyPaths = [ + ../secrets/keys/users + ../secrets/keys/hosts + ]; }; }; }