ryantm / agenix

age-encrypted secrets for NixOS and Home manager
https://matrix.to/#/#agenix:nixos.org
Creative Commons Zero v1.0 Universal
1.34k stars 108 forks source link

feat: remove empty newlines from jq query #206

Closed timhae closed 9 months ago

timhae commented 9 months ago

When you do not have your pubkeys in your secrets.nix verbatim as string but read them from file like this: desktop1 = builtins.readFile ./desktop1.pub;, you will end up with empty newlines in the resulting list of keys, which will add --recipient='' arguments to your age call, failing the call.

timhae commented 9 months ago

I had the same issue and solved it back then with #114