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

33 lines
727 B
Nix
Raw Normal View History

2022-06-09 22:13:12 +02:00
let
2023-01-12 18:40:38 +01:00
lib = (import <nixpkgs> { }).lib;
2024-09-24 12:33:51 +02:00
readpubkeys =
user:
builtins.filter (k: k != "") (
lib.splitString "\n" (builtins.readFile (../../../pubkeys + "/${user}.keys"))
);
2024-10-12 17:45:41 +02:00
keys =
2024-09-24 12:33:51 +02:00
(readpubkeys "sinavir")
++ (readpubkeys "hackens-host")
++ (readpubkeys "catvayor")
2024-09-24 12:33:51 +02:00
++ (readpubkeys "raito")
++ (readpubkeys "gdd")
++ (readpubkeys "backslash");
2024-10-12 17:45:41 +02:00
in
{
"matterbridge-env.age".publicKeys = keys;
2024-09-24 12:33:51 +02:00
"snipeit.age".publicKeys =
2024-10-12 17:45:41 +02:00
keys;
"ragbJWT.age".publicKeys =
keys;
"ragb.age".publicKeys =
keys;
2024-09-24 12:33:51 +02:00
"django.age".publicKeys =
2024-10-12 17:45:41 +02:00
keys;
2024-09-24 12:33:51 +02:00
"django-gestiohackens.age".publicKeys =
2024-10-12 17:45:41 +02:00
keys;
2024-09-24 12:33:51 +02:00
"wg-key.age".publicKeys =
2024-10-12 17:45:41 +02:00
keys;
2024-09-24 12:33:51 +02:00
"prometheus-webconf".publicKeys =
2024-10-12 17:45:41 +02:00
keys;
2022-06-09 22:13:12 +02:00
}