From 32ceed3318e1729062052b467d69c8781291e71f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 5 Feb 2025 23:17:50 -0800 Subject: [PATCH] Fix: Restore sshKeyPaths to use the user's key instead of root's. --- dotfiles/modules/sops.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/modules/sops.nix b/dotfiles/modules/sops.nix index 6b55f3ca..1f3d007d 100644 --- a/dotfiles/modules/sops.nix +++ b/dotfiles/modules/sops.nix @@ -1,7 +1,7 @@ { sys, pkgs, inputs, flake, ... }: { imports = [ inputs.sops-nix.nixosModules.sops ]; sops = { - age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; + age.sshKeyPaths = [ "${sys.ssh.path}/${sys.ssh.privateKey}" ]; #age.keyFile = "/home/${sys.username}/.config/sops/age/keys.txt"; # This file is expected to be provided from outside the nix-store age.generateKey = false; };