1
1
mirror of https://github.com/ryantm/agenix.git synced 2024-08-16 17:40:36 +03:00

fix: add --strict nix-instantiate to support builtins.readFile

This commit is contained in:
James Taranto 2024-03-20 22:28:47 +11:00
parent 8cb01a0e71
commit e2ad357a97

View File

@ -187,7 +187,7 @@ function edit {
}
function rekey {
FILES=$( (@nixInstantiate@ --json --eval -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
FILES=$( (@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in builtins.attrNames rules)" | @jqBin@ -r .[]) || exit 1)
for FILE in $FILES
do