nixos-config/hosts/poseidon/secrets.nix

39 lines
768 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
"matrix-synapse/secret-config" = {
owner = "matrix-synapse";
};
2022-03-11 17:42:16 +01:00
2022-04-10 11:54:58 +02:00
"nextcloud/admin-pass" = {
owner = "nextcloud";
};
2022-04-10 11:54:58 +02:00
"paperless/admin-password" = {};
"paperless/secret-key" = {};
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
};
}