18 lines
229 B
Nix
18 lines
229 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
{
|
|
vHost =
|
|
if config.mailserver.enable then
|
|
{
|
|
serverName = config.mailserver.fqdn;
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
}
|
|
else
|
|
{ };
|
|
}
|
|
.vHost
|