nixos/services/nginx_vHosts/mail.nix
2019-08-04 03:54:58 +02:00

11 lines
187 B
Nix

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