Closed LoganBarnett closed 5 months ago
(wrong post oops) :P
I would presume that this issue is a direct cause of #15. It's of course unfortunate that the help message can't be printed if you have severe evaluation errors, but since the script must include text specific to your configuration there's no way around it. If the nix evaluation fails we cannot execute anything because the whole script will be missing.
I agree - it sounds like a bug of a bug. The initial problem being that I didn't have the agenix
NixOS module included in my configuration. Thanks for the help! I'll close this out, since I don't think there's anything additional to do here over #15 .
Hi! Thanks again for the work on
agenix-rekey
!If I run
agenix rekey --help
, and I have yet to configure everything that gets populated into thenodes
attribute for the rootagenix-rekey
configuration,agenix rekey --help
fails with this error:This is my configuration at the root of my
flake.nix
, for reference:If I make sure all of them have something like this in their
modules
list:Then I move on from that error. I do get another error, which suspiciously looks like #15:
But at this point I only have a single secret, and that secret is pointing at a real file (per the workaround stated in #15). So I'm a bit of a loss there as well. I'm happy to create a new ticket if these are completely different issues, but I wanted to err on including too much context than not enough.
In total honesty I haven't done a minimal reproduction of this issue but I did want to create a ticket because I believe minimally there is an opportunity to enhance error handling/reporting. This is my sprawling Nix configuration if it is helpful to see for additional context, but I do not expect any kind of spelunking into it.
Thanks again!