Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos-install cannot find identities #235

Open
RSWilli opened this issue Jan 4, 2024 · 0 comments
Open

nixos-install cannot find identities #235

RSWilli opened this issue Jan 4, 2024 · 0 comments

Comments

@RSWilli
Copy link

RSWilli commented Jan 4, 2024

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:

age.identityPaths = [
    "/etc/ssh/ssh_host_ed25519_key"
    "/etc/ssh/ssh_host_rsa_key"
    "/run/media/nixos/installer-keys/install_key" # only on live ISO
];

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:

[agenix] WARNING: config.age.identityPaths entry /run/media/nixos/installer-keys/install_key not present!

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant