nix-config/secrets/secrets.nix

23 lines
913 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
let
systems = {
eden = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIByi8x1IgXBC6iw6MJoO7xIkkU4bdIaQ3Mi6zEtm+IJh";
hive = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGEn+C6ktSqvvwNVf1zUeNKKtZJ1QgLVhQjU83+0RvSY";
2024-11-10 17:54:08 -05:00
oasis = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICCvgPNEJrWjeCUmF/izLhIzaAwSNYHW9o5meYmGHGzj";
raindog = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINq0rMkFlizGPijlHKMYS9CGWJ2T1ZJHqaLozWdoySz2";
2024-11-10 17:54:08 -05:00
};
users = {
tdback = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIErXJtbnTYwxgqv7v5HJgd0OUAlOeEzxX7TxEyBDM+at";
};
2024-11-10 17:54:08 -05:00
allSystems = builtins.attrValues systems;
allUsers = builtins.attrValues users;
2024-11-10 17:54:08 -05:00
in
{
"forgejoAdminPass.age".publicKeys = [ systems.oasis ];
"forgejoRunnerToken.age".publicKeys = [ systems.oasis ];
"piholeAdminPass.age".publicKeys = [ systems.raindog ];
"pushoverAppToken.age".publicKeys = allSystems ++ allUsers;
"pushoverUserToken.age".publicKeys = allSystems ++ allUsers;
2024-11-10 17:54:08 -05:00
}