nixos/services/nginx_vHosts/mail.nix

17 lines
234 B
Nix

{
config,
lib,
...
}:
with lib;
{
vHost =
if config.mailserver.enable
then {
serverName = config.mailserver.fqdn;
enableACME = true;
forceSSL = true;
}
else {};
}
.vHost