2021-11-15 00:11:19 +01:00
|
|
|
let
|
|
|
|
pkgs = import <nixpkgs> {};
|
|
|
|
lib = pkgs.lib;
|
2022-08-16 01:59:59 +02:00
|
|
|
readPubkeys = user: builtins.filter (k: k != "") (lib.splitString "\n" (builtins.readFile (../../pubkeys + "/${user}.keys")));
|
2021-11-15 00:11:19 +01:00
|
|
|
superadmins = (readPubkeys "raito") ++ (readPubkeys "gdd");
|
|
|
|
public-cof = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDUe/w7e3+KIa1YPFH9FGapDWM/sWOvOCcYXNlnIWypg";
|
|
|
|
systems = [ public-cof ];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
"nextcloudAdminPasswordFile.age".publicKeys = superadmins ++ systems;
|
|
|
|
"nextcloudDatabasePasswordFile.age".publicKeys = superadmins ++ systems;
|
2022-09-18 18:40:55 +02:00
|
|
|
"kanboard-secrets.age".publicKeys = superadmins ++ systems;
|
2021-11-15 00:11:19 +01:00
|
|
|
}
|
|
|
|
|