simplify agenix config

This commit is contained in:
2024-09-15 13:53:44 -04:00
parent ff306a6d70
commit 5889166d81
2 changed files with 27 additions and 24 deletions

View File

@@ -2,17 +2,17 @@ let
laptop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4jL6gYOunUlUtPvGdML0cpbKSsPNqQ1jit4E7U1RyH";
desktop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJjT5QZ3zRDb+V6Em20EYpSEgPW5e/U+06uQGJdraxi";
in
{
"factorio.age".publicKeys = [
laptop
desktop
];
"server-password.age".publicKeys = [
laptop
desktop
];
"borg-laptop-password.age".publicKeys = [
laptop
desktop
];
}
(builtins.listToAttrs (
map
(f: {
f.publicKeys = [
laptop
desktop
];
})
[
"factorio.age"
"server-password.age"
"borg-laptop-password.age"
]
))