fix(nix): sops user password not decrypting on boot

Caused by the age key not being on the root filesystem. I have moved to
the nix repository as of now
This commit is contained in:
stitchy 2025-11-02 16:41:04 -08:00
parent eb2520c79e
commit c128206e2b
Signed by: stitchy
SSH key fingerprint: SHA256:p+xeQgmOvQ2br1d2STl5OnRRMef2LRqCtGA7SO4WYk0
2 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ in
};
environment.sessionVariables = {
SOPS_AGE_KEY_FILE = "/persist/secrets/age.txt";
SOPS_AGE_KEY_FILE = "/etc/nixos/secrets/age.txt";
};
programs = {
@ -100,7 +100,7 @@ in
settings.KbdInteractiveAuthentication = false;
};
sops.age.keyFile = "/persist/secrets/age.txt";
sops.age.keyFile = "/etc/nixos/secrets/age.txt";
environment.etc.hosts.mode = "0644";
nix.settings.experimental-features = [ "nix-command" "flakes" ];