From def1f392fe9a565bfc8aa163cbda017fea043d5a Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sat, 7 Sep 2024 07:55:13 +0300 Subject: [PATCH] fix: wrong certificate for email (#99) Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config/pulls/99 --- sp-modules/simple-nixos-mailserver/config.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sp-modules/simple-nixos-mailserver/config.nix b/sp-modules/simple-nixos-mailserver/config.nix index a969f36..b3de78f 100644 --- a/sp-modules/simple-nixos-mailserver/config.nix +++ b/sp-modules/simple-nixos-mailserver/config.nix @@ -75,7 +75,9 @@ lib.mkIf sp.modules.simple-nixos-mailserver.enable "admin@${sp.domain}" = "${sp.username}@${sp.domain}"; }; - certificateScheme = "acme"; + certificateScheme = "manual"; + certificateFile = "/var/lib/acme/root-${cfg.domain}/fullchain.pem"; + keyFile = "/var/lib/acme/root-${cfg.domain}/key.pem"; # Enable IMAP and POP3 enableImap = true;