hackens-org-configurations/secrets/secrets.nix
hackens server 648ab4aea8 nixfmt
2023-01-12 18:40:38 +01:00

10 lines
356 B
Nix

let
lib = (import <nixpkgs> { }).lib;
readPubkeys = user:
builtins.filter (k: k != "")
(lib.splitString "\n" (builtins.readFile (../pubkeys + "/${user}.keys")));
in {
"wiki-openID.age".publicKeys = (readPubkeys "sinavir")
++ (readPubkeys "hackens-host") ++ (readPubkeys "raito")
++ (readPubkeys "gdd") ++ (readPubkeys "backslash");
}