2024-06-24 16:03:07 +00:00
|
|
|
let
|
|
|
|
keys = import common/ssh-keys.nix;
|
|
|
|
|
|
|
|
commonKeys = keys.users.delroth;
|
|
|
|
|
|
|
|
secrets = with keys; {
|
|
|
|
hydra-s3-credentials = [ machines.bagel-box ];
|
2024-06-24 18:59:19 +00:00
|
|
|
hydra-ssh-key-priv = [ machines.bagel-box ];
|
2024-06-24 16:03:07 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
builtins.listToAttrs (
|
|
|
|
map (secretName: {
|
|
|
|
name = "secrets/${secretName}.age";
|
|
|
|
value.publicKeys = secrets."${secretName}" ++ commonKeys;
|
|
|
|
}) (builtins.attrNames secrets)
|
|
|
|
)
|