nixcfg/secrets/secrets.nix

30 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-08 22:29:40 -04:00
let
2024-06-10 23:14:18 -04:00
hosts = [
"fallarbor"
"lavaridge"
"mauville"
"petalburg"
"rustboro"
2024-06-08 22:29:40 -04:00
];
2024-06-10 23:14:18 -04:00
systemKeys = builtins.map (host: builtins.readFile ./publicKeys/root_${host}.pub) hosts;
userKeys = builtins.map (host: builtins.readFile ./publicKeys/aly_${host}.pub) hosts;
keys = systemKeys ++ userKeys;
2024-06-08 22:29:40 -04:00
in {
2024-06-10 19:51:42 -04:00
"lastFM/apiKey.age".publicKeys = keys;
"lastFM/secret.age".publicKeys = keys;
"spotify/clientId.age".publicKeys = keys;
"spotify/clientSecret.age".publicKeys = keys;
"syncthing/fallarbor/cert.age".publicKeys = keys;
"syncthing/fallarbor/key.age".publicKeys = keys;
"syncthing/lavaridge/cert.age".publicKeys = keys;
"syncthing/lavaridge/key.age".publicKeys = keys;
"syncthing/mauville/cert.age".publicKeys = keys;
"syncthing/mauville/key.age".publicKeys = keys;
"syncthing/petalburg/cert.age".publicKeys = keys;
"syncthing/petalburg/key.age".publicKeys = keys;
"syncthing/rustboro/cert.age".publicKeys = keys;
"syncthing/rustboro/key.age".publicKeys = keys;
2024-06-10 19:51:42 -04:00
"tailscale/authKeyFile.age".publicKeys = keys;
"wifi.age".publicKeys = keys;
2024-06-08 22:29:40 -04:00
}