ryantm/agenix

"unexpected invalid token" when attempting to decrypt with nixos

Closed this issue · 1 comments

i tried both age and rage, nixos module and home-manager. all give the same result.
the encrypted file contains some unknown symbols, but the agenix CLI can still decrypt correctly.
the problem occurs when i try to rebuild.

error: syntax error, unexpected invalid token, expecting end of file
       at /nix/store/ba8g5fk2vvqi3h8k292j6jgw9wy5k6ry-source/secrets/test.age:5:2:
            4| --- mLNP21USr+t/8d/k6veIZ16VWr/U7jkFcPPicKQ2M5o
            5| i��m7��_!�;#��hI+�l>8& ���SM
             |  ^

(i already posted this on the matrix last night but it seems to be inactive?)

it was my mistake, after a closer look at the secrets configuration, i missed the .file on the end.