diff --git a/modules/services/stalwart/module.nix b/modules/services/stalwart/module.nix index d3e384a..5efc214 100644 --- a/modules/services/stalwart/module.nix +++ b/modules/services/stalwart/module.nix @@ -7,7 +7,7 @@ inherit (lib.modules) mkIf; inherit (lib.options) mkEnableOption; - domain = "mail.charlieroot.dev"; + domain = "charlieroot.dev"; cfg = config.modules.system.services.stalwart; in { @@ -66,7 +66,7 @@ in { }; jmap = { bind = ["localhost::8080" "[::]:8080"]; - url = "https://${domain}"; + url = "https://mail.${domain}"; protocol = "jmap"; tls.implicit = true; }; @@ -77,7 +77,7 @@ in { }; }; lookup.default = { - hostname = domain; + hostname = "mail.${domain}"; inherit domain; }; }; @@ -122,7 +122,7 @@ in { }; services.nginx = { enable = true; - virtualHosts.${domain} = { + virtualHosts."mail.${domain}" = { addSSL = true; enableACME = true; locations."/" = {