stalwart: progress

This commit is contained in:
Bloxx12 2025-05-22 22:06:58 +02:00
commit 79d75bb7c2
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

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