nixos-config/hosts/poseidon/secrets.nix

28 lines
520 B
Nix
Raw Normal View History

2022-02-07 17:16:52 +01:00
{
2022-04-10 11:54:58 +02:00
config,
lib,
options,
...
}: {
2022-02-07 17:16:52 +01:00
config.age = {
2022-04-10 11:54:58 +02:00
secrets = let
toSecret = name: {...} @ attrs:
{
2022-02-07 17:16:52 +01:00
file = ./../../modules/secrets + "/${name}.age";
2022-04-10 11:54:58 +02:00
}
// attrs;
in
lib.mapAttrs toSecret {
"gandi/api-key" = {};
2022-03-11 17:10:44 +01:00
2022-04-10 11:54:58 +02:00
"lohr/shared-secret" = {};
2022-03-11 17:26:54 +01:00
2022-04-10 11:54:58 +02:00
"restic-backup/poseidon-credentials" = {};
"restic-backup/poseidon-password" = {};
2022-04-10 11:54:58 +02:00
"users/alarsyo-hashed-password" = {};
"users/root-hashed-password" = {};
};
2022-02-07 17:16:52 +01:00
};
}