Fix: Restore sshKeyPaths to use the user's key instead of root's.

This commit is contained in:
Joey Hafner 2025-02-05 23:17:50 -08:00
parent db69e5a83d
commit 32ceed3318
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55

View File

@ -1,7 +1,7 @@
{ sys, pkgs, inputs, flake, ... }: { { sys, pkgs, inputs, flake, ... }: {
imports = [ inputs.sops-nix.nixosModules.sops ]; imports = [ inputs.sops-nix.nixosModules.sops ];
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.keyFile = "/home/${sys.username}/.config/sops/age/keys.txt"; # This file is expected to be provided from outside the nix-store
age.generateKey = false; age.generateKey = false;
}; };