From ee8d85a568548a69bc7cf2fe14d0b1fb17961933 Mon Sep 17 00:00:00 2001 From: reo101 Date: Sun, 8 Sep 2024 17:47:29 +0300 Subject: [PATCH] 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 --- modules/flake/configurations/default-generators.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/flake/configurations/default-generators.nix b/modules/flake/configurations/default-generators.nix index e6dbe40..4de52b6 100644 --- a/modules/flake/configurations/default-generators.nix +++ b/modules/flake/configurations/default-generators.nix @@ -60,7 +60,7 @@ let # (r)agenix && agenix-rekey inputs.ragenix.nixosModules.default inputs.agenix-rekey.nixosModules.default - (lib.optionalAttrs (meta ? pubkey) { + (lib.optionalAttrs (meta.pubkey != null) { age.rekey.hostPubkey = meta.pubkey; }) ./agenix-rekey