nixcfg/secrets/secrets.nix

37 lines
1.2 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"
2024-06-14 20:06:50 -04:00
"mandarin"
2024-06-10 23:14:18 -04:00
"petalburg"
"rustboro"
2024-06-08 22:29:40 -04:00
];
users = [
"aly_lavaridge"
"aly_mauville"
"aly_petalburg"
"aly_rustboro"
];
2024-06-10 23:14:18 -04:00
systemKeys = builtins.map (host: builtins.readFile ./publicKeys/root_${host}.pub) hosts;
userKeys = builtins.map (user: builtins.readFile ./publicKeys/${user}.pub) users;
2024-06-10 23:14:18 -04:00
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
}