Sops-nix doesn't find keys.txt on startup

Hi, I set up my existing NixOS config on my laptop. Most worked flawlessly, however, sops-nix doesn’t seem to find my keys.txt.

May 22 20:23:38 orion stage-2-init: /nix/store/p8cixvkvprmqvw3ik0b70bxgmj5zzkd9-sops-install-secrets-0.0.1/bin/sops-install-secrets: cannot read keyfile '/home/lukas/.config/sops/age/keys.txt': open /home/lukas/.config/sops/age/keys.txt: no such file or directory

Secrets are not created on startup. Whenever I re-switch again, it works (until the next reboot).

The file exists with correct permissions:

> ls /home/lukas/.config/sops/age/keys.txt
.rwxrwxrwx 75 lukas  5 Dec  2024 /home/lukas/.config/sops/age/keys.txt

Should be a red flag if it’s using your user encryption keys. Did you set it up to use your host’s ssh keys?