secrets: clean up secret declaration

This commit is contained in:
Infinidoge 2024-09-29 00:55:19 -04:00
parent 262e6b94ef
commit b328fe0dff
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -24,17 +24,19 @@ let
(attrValues systems) (attrValues systems)
(attrValues users) (attrValues users)
]); ]);
generate = secrets: foldl' (a: b: a // b) { } (map (n: { ${n}.publicKeys = allKeys; }) secrets);
in in
{ generate [
"infinidoge-password.age".publicKeys = allKeys; "infinidoge-password.age"
"root-password.age".publicKeys = allKeys; "root-password.age"
"binary-cache-private-key.age".publicKeys = allKeys; "binary-cache-private-key.age"
"vaultwarden.age".publicKeys = allKeys; "vaultwarden.age"
"freshrss.age".publicKeys = allKeys; "freshrss.age"
"borg-password.age".publicKeys = allKeys; "borg-password.age"
"borg-ssh-key.age".publicKeys = allKeys; "borg-ssh-key.age"
"cloudflare.age".publicKeys = allKeys; "cloudflare.age"
"smtp-password.age".publicKeys = allKeys; "smtp-password.age"
"hydra.age".publicKeys = allKeys; "hydra.age"
"hedgedoc.age".publicKeys = allKeys; "hedgedoc.age"
} ]