Start using age for secret management
This commit is contained in:
parent
276c8f33c8
commit
da9160559c
39 changed files with 281 additions and 30 deletions
46
secrets.nix
Normal file
46
secrets.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
let
|
||||
kholinar = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOL8MzChayhcVTfZvE3/ExwXpq2+LbihjzUVlKeIGoOL";
|
||||
lasting-integrity = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMKJmeY7j5LxWVv3fKzqG4Bvg/ZhOp8iwk0utpyMWMSk";
|
||||
urithiru = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOrzOpyzDc5BVtAeb5//PnMRcp+9B+DjfU7p2YpaH6a2";
|
||||
hosts = [
|
||||
kholinar
|
||||
lasting-integrity
|
||||
urithiru
|
||||
];
|
||||
servers = [
|
||||
lasting-integrity
|
||||
urithiru
|
||||
];
|
||||
|
||||
charlotte = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICDb17zAg3zwvdYHNZqXSGYKseCz5281Ha6oOYPbwFYD"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJY5nXR/V6wcMRxugD7GTOF8kwfGnAT2CRuJ2Qi60vsm"
|
||||
];
|
||||
users = charlotte;
|
||||
in
|
||||
{
|
||||
"secrets/passwords/users/charlotte.age".publicKeys = hosts ++ users;
|
||||
"secrets/passwords/users/root.age".publicKeys = hosts ++ users;
|
||||
|
||||
"secrets/authorized_keys/charlotte.age".publicKeys = hosts ++ users;
|
||||
"secrets/authorized_keys/root.age".publicKeys = hosts ++ users;
|
||||
|
||||
"secrets/passwords/ugent-mount-credentials.age".publicKeys = [ kholinar ] ++ users;
|
||||
|
||||
"secrets/passwords/services/accentor.age".publicKeys = [ urithiru ] ++ users;
|
||||
|
||||
"secrets/passwords/services/ssmtp-pass.age".publicKeys = servers ++ users;
|
||||
|
||||
"secrets/passwords/services/acme.age".publicKeys = servers ++ users;
|
||||
|
||||
"secrets/passwords/services/nextcloud-admin.age".publicKeys = [ lasting-integrity ] ++ users;
|
||||
|
||||
"secrets/passwords/services/syncthing-basic-auth.age".publicKeys = [ lasting-integrity ] ++ users;
|
||||
|
||||
"secrets/passwords/services/data-basic-auth.age".publicKeys = [ urithiru ] ++ users;
|
||||
|
||||
"secrets/data-access/ssh_host_rsa_key.age".publicKeys = [ urithiru ] ++ users;
|
||||
"secrets/data-access/ssh_host_rsa_key.pub.age".publicKeys = [ urithiru ] ++ users;
|
||||
"secrets/data-access/ssh_host_ed25519_key.age".publicKeys = [ urithiru ] ++ users;
|
||||
"secrets/data-access/ssh_host_ed25519_key.pub.age".publicKeys = [ urithiru ] ++ users;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue