let keys = import ./ssh-keys.nix; secrets = with keys; { tailscale-authKey = [ machines.arr machines.metrics ]; # alertmanager-matrix-forwarder = [ machines.pluto ]; # fastly-read-only-api-token = [ machines.pluto ]; # hydra-mirror-aws-credentials = [ machines.pluto ]; # hydra-mirror-git-credentials = [ machines.pluto ]; # packet-sd-env = [ machines.pluto ]; # pluto-backup-secret = [ machines.pluto ]; # pluto-backup-ssh-key = [ machines.pluto ]; # prometheus-packet-spot-market-price-exporter = [ machines.pluto ]; # rfc39-credentials = [ machines.pluto ]; # rfc39-github = [ machines.pluto ]; # rfc39-record-push = [ machines.pluto ]; # tarball-mirror-aws-credentials = [ machines.pluto ]; }; in builtins.listToAttrs ( map (secretName: { name = "secrets/${secretName}.age"; value.publicKeys = secrets."${secretName}" ++ keys.infra-core; }) (builtins.attrNames secrets) )