From f1dcb8c72bd3ace65ca266004374af45ee2eaf1f Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Fri, 30 May 2025 14:35:59 +0200 Subject: [PATCH] Updated sops-nix to also directly point at /persist --- modules/nixos/secrets.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/nixos/secrets.nix b/modules/nixos/secrets.nix index eb57763..ac695dd 100644 --- a/modules/nixos/secrets.nix +++ b/modules/nixos/secrets.nix @@ -31,8 +31,12 @@ in config = mkIf cfg.enable { # Set up SOPS + # TODO: Fix the key not being present in /etc/sops before sops-nix runs sops.defaultSopsFile = cfg.defaultFile; - sops.age.sshKeyPaths = [ "/etc/sops/sops_ed25519_key" ]; + sops.age.sshKeyPaths = [ + "/etc/sops/sops_ed25519_key" + "/persist/system/etc/sops/sops_ed25519_key" + ]; sops.secrets = cfg.secrets; modules.impermanence.directories = [ "/etc/sops" ]; };