secrets module overhaul, moving back to bitwarden, removed glauca dyndns

This commit is contained in:
kat witch 2021-09-01 05:44:04 +01:00
parent 1391eabee4
commit 57b35ead89
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
26 changed files with 190 additions and 192 deletions

View file

@ -5,11 +5,17 @@ with lib;
{
imports = [ sources.nixos-mailserver.outPath ];
kw.secrets = [
"mail-domainkey-kitty"
"mail-kat-hash"
"mail-gitea-hash"
];
kw.secrets.variables = (mapListToAttrs (field:
nameValuePair "mail-${field}-hash" {
path = "secrets/mail-kittywitch";
field = "${field}-hash";
}) ["gitea" "kat"]
// {
mail-domainkey-kitty = {
path = "secrets/mail-kittywitch";
field = "notes";
};
});
deploy.tf.dns.records.services_mail_mx = {
tld = config.network.dns.tld;