nixos-config/hosts/poseidon/secrets.nix

25 lines
516 B
Nix
Raw Normal View History

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