fix(flake)!: correctly set agenix-rekey hostPubkey

- `meta ? pubkey` was valid before going with the modules strategy
- Now `pubkey` is always defined and set to `null` by default
This commit is contained in:
reo101 2024-09-08 17:47:29 +03:00
parent 52d28e5001
commit ee8d85a568
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -60,7 +60,7 @@ let
# (r)agenix && agenix-rekey # (r)agenix && agenix-rekey
inputs.ragenix.nixosModules.default inputs.ragenix.nixosModules.default
inputs.agenix-rekey.nixosModules.default inputs.agenix-rekey.nixosModules.default
(lib.optionalAttrs (meta ? pubkey) { (lib.optionalAttrs (meta.pubkey != null) {
age.rekey.hostPubkey = meta.pubkey; age.rekey.hostPubkey = meta.pubkey;
}) })
./agenix-rekey ./agenix-rekey