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

WARNING: no readable identities found! #184

Open n8henrie opened 1 year ago

n8henrie commented 1 year ago

https://github.com/ryantm/agenix/blob/2994d002dcff5353ca1ac48ec584c7f6589fe447/modules/age.nix#L76

Shouldn't this be fatal?

Is there any reason not to exit 1 at this point, instead of continuing on to create the directory structure in the following steps?

ryantm commented 1 year ago

Probably! Of course you want to be fatal when installing a new config, but do you want to be fatal during a boot? I'm not sure the semantics here.

n8henrie commented 1 year ago

do you want to be fatal during a boot?

I wouldn't expect it to abort the entire boot, right? Although I suppose it might trigger a bunch of systemd / launchd retries.