You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thataccess 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 tonix-instantiate
inagenix.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.
The text was updated successfully, but these errors were encountered: