Open RSWilli opened 9 months ago
same here, tried putting the id_rsa + id_rsa.pub in ~root and ~nixos during installation both in / and /mnt but it can never find the recipient
ok after some hours of figuring it out:
nixos-install chroots into the /mnt so the key should be under /mnt
default locations of keys do not work, you need to explicitly set age.identityPaths
I'm new to nixos and I'm installing a second system from a flake.
I'm using the nixos ISO file to install a new system. I have identities on a separate LUKS encrypted usb drive plugged into the system. I configured agenix in the following way:
The secrets are also keyed against the "install_key.pub".
and I run
sudo nixos-install --flake .#main
to install the system. After all the nix build logs, agenix logs:Does the
nixos-install
command create some kind of chroot so it doesn't have access to the usb drive? Or am I doing something else wrong?