secrets: clean up secret declaration
This commit is contained in:
parent
262e6b94ef
commit
b328fe0dff
1 changed files with 15 additions and 13 deletions
|
@ -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"
|
||||||
}
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue