depot/hosts/VEGAS/services/mail/default.nix

20 lines
381 B
Nix
Raw Normal View History

2021-10-16 21:22:48 +03:00
{ tools, ... }:
{
imports = [
./imap.nix
./opendkim.nix
./postfix.nix
./saslauthd.nix
];
services.nginx.virtualHosts."mail.${tools.meta.domain}" = {
enableACME = true;
locations."/".return = "204";
};
security.acme.certs."mail.${tools.meta.domain}".extraDomainNames = map
(x: "${x}.${tools.meta.domain}") [
"mx"
"imap"
"smtp"
];
}