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

Agenix cli error in pure evaluation mode #223

Open
SamueleFacenda opened this issue Nov 15, 2023 · 0 comments
Open

Agenix cli error in pure evaluation mode #223

SamueleFacenda opened this issue Nov 15, 2023 · 0 comments

Comments

@SamueleFacenda
Copy link
Contributor

I've recently enabled pure evaluation mode in nix.conf. Now when I try to run agenix -e mysecret.age I get an error that states that access to absolute path '/nixos-config/secrets/secrets.nix' is forbidden in pure eval mode (use '--impure' to override) and I cannot proceed.
I don't know if this is intended (keeping the evaluation pure), but the fix would be to add the --impure flag to nix-instantiate in agenix.sh.
Personally I think that this would not have drawbacks, reading from a file is an impure operation and thus should be marked as such.

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