dotfiles/nix-conf/secrets.nix

19 lines
740 B
Nix
Raw Permalink Normal View History

2023-01-13 06:42:21 +00:00
let
2022-12-23 10:28:19 +00:00
# user-specific (~/.ssh/id_ed25519.pub)
users = {
"hungtr@bao" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK+1+gps6phbZboIb9fH51VNPUCkhSSOAbkI3tq3Ou0Z";
2023-07-07 07:40:29 +00:00
"htran@Hungs-MacBook-Pro.local" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJvOCZ4nyFiiKK7gkwzP4hXJ6NmtgbdUJdWgIzUL0GMA";
2022-12-23 10:28:19 +00:00
};
2023-07-07 07:40:29 +00:00
# System-specific settings (/etc/ssh/ssh_host_ed25519_key.pub)
2022-12-23 10:28:19 +00:00
systems = {
"bao" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIBuAaAE7TiQmMH300VRj/pYCri1qPmHjd+y9aX2J0Fs";
};
all = users // systems;
# stands for calculus
c_ = builtins;
2023-06-18 00:46:31 +00:00
in {
"system/secrets/s3fs.age".publicKeys = c_.attrValues all;
"system/secrets/s3fs.digital-garden.age".publicKeys = c_.attrValues all;
"system/secrets/_nhitrl.age".publicKeys = c_.attrValues all;
2022-12-23 10:28:19 +00:00
}