hackens-org-configurations/machines/agb01/secrets/secrets.nix

10 lines
291 B
Nix
Raw Normal View History

2024-10-10 01:00:01 +02:00
let
lib = (import <nixpkgs> {}).lib;
readPubkeys = user:
builtins.filter (k: k != "") (lib.splitString "\n"
(builtins.readFile (../../../pubkeys + "/${user}.keys")));
2024-10-10 01:00:01 +02:00
in {
"wg.age".publicKeys = (readPubkeys "catvayor") ++ (readPubkeys "sinavir") ++ (readPubkeys "agb01");
2024-10-10 01:00:01 +02:00
}