nixos-config/hosts/thanatos/secrets.nix

23 lines
457 B
Nix
Raw Normal View History

2023-12-13 17:29:54 +01:00
{
config,
lib,
options,
...
}: {
config.age = {
secrets = let
toSecret = name: {...} @ attrs:
{
file = ./../../modules/secrets + "/${name}.age";
}
// attrs;
in
lib.mapAttrs toSecret {
"users/alarsyo-hashed-password" = {};
"users/root-hashed-password" = {};
2024-11-20 11:01:35 +01:00
"gitlab-runner/thanatos-runner-env" = {};
2024-11-20 13:31:46 +01:00
"gitlab-runner/thanatos-nix-runner-env" = {};
2023-12-13 17:29:54 +01:00
};
};
}