nixos-config/hosts/hades/secrets.nix

28 lines
522 B
Nix
Raw Normal View History

2022-06-10 16:56:15 +02:00
{
config,
lib,
options,
...
}: {
config.age = {
secrets = let
toSecret = name: {...} @ attrs:
{
file = ./../../modules/secrets + "/${name}.age";
}
// attrs;
in
lib.mapAttrs toSecret {
"gandi/api-key" = {};
"miniflux/admin-credentials" = {};
2022-06-12 15:33:59 +02:00
"restic-backup/hades-credentials" = {};
"restic-backup/hades-password" = {};
2022-06-10 16:56:15 +02:00
"users/alarsyo-hashed-password" = {};
"users/root-hashed-password" = {};
};
};
}