infrastructure/external/netbox/secrets/secrets.nix

16 lines
430 B
Nix
Raw Normal View History

let
sources = import ../../../npins;
inherit ((import sources.nixpkgs { })) lib;
nix-lib = import ../../../lib { };
inherit ((import ../../../meta).members) groups;
publicKeys = lib.splitString "\n"
(builtins.readFile (./maurice.keys)) # maurice servers' keys
++ nix-lib.getAllKeys (groups.netbox ++ groups.root);
in {
"netbox.age" = { inherit publicKeys; };
"netbox_env.age" = { inherit publicKeys; };
}