nixos-config/modules/secrets/secrets.nix

36 lines
1.5 KiB
Nix
Raw Normal View History

2022-01-17 21:56:41 +01:00
let
alarsyo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3rrF3VSWI4n4cpguvlmLAaU3uftuX4AVV/39S/8GO9 alarsyo@thinkpad";
2022-04-10 11:54:58 +02:00
users = [alarsyo];
2022-01-17 21:56:41 +01:00
boreal = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAagal1aqZh52wEmgsw7fkCzO41o4Cx+nV4wJGZuX1RP root@boreal";
poseidon = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKYhZYMbWQG9TSQ2qze8GgFo2XrZzgu/GuSOGwenByJo root@poseidon";
zephyrus = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILU4JfIADH9MXUnVe+3ezYK9WXsqy/jJcm1zFkmL4aSU root@zephyrus";
2022-04-10 11:54:58 +02:00
machines = [boreal poseidon zephyrus];
2022-01-17 21:56:41 +01:00
all = users ++ machines;
2022-04-10 11:54:58 +02:00
in {
"gandi/api-key.age".publicKeys = [poseidon];
2022-03-11 17:10:44 +01:00
2022-04-10 11:54:58 +02:00
"lohr/shared-secret.age".publicKeys = [poseidon];
2022-03-11 17:26:54 +01:00
2022-04-10 11:54:58 +02:00
"matrix-synapse/secret-config.age".publicKeys = [poseidon];
2022-03-11 17:42:16 +01:00
2022-04-10 11:54:58 +02:00
"miniflux/admin-credentials.age".publicKeys = [poseidon];
2022-03-11 18:47:53 +01:00
2022-04-10 11:54:58 +02:00
"nextcloud/admin-pass.age".publicKeys = [poseidon];
2022-04-10 11:54:58 +02:00
"paperless/admin-password.age".publicKeys = [poseidon];
"paperless/secret-key.age".publicKeys = [poseidon];
2022-04-10 11:54:58 +02:00
"restic-backup/boreal-password.age".publicKeys = [alarsyo boreal];
"restic-backup/boreal-credentials.age".publicKeys = [alarsyo boreal];
"restic-backup/poseidon-password.age".publicKeys = [alarsyo poseidon];
"restic-backup/poseidon-credentials.age".publicKeys = [alarsyo poseidon];
"restic-backup/zephyrus-password.age".publicKeys = [alarsyo zephyrus];
"restic-backup/zephyrus-credentials.age".publicKeys = [alarsyo zephyrus];
"users/root-hashed-password.age".publicKeys = machines;
2022-04-10 11:54:58 +02:00
"users/alarsyo-hashed-password.age".publicKeys = machines ++ [alarsyo];
2022-01-17 21:56:41 +01:00
}