{configVars, ...}: let email = configVars.email.user; domain = configVars.domains.xmpp; in { security.acme = { acceptTerms = true; defaults.email = email; }; networking.firewall.allowedTCPPorts = [80 443]; services.nginx = { enable = true; recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts."${domain}" = { enableACME = true; forceSSL = true; root = "/srv/hello/"; }; }; }