From e10644be12916d5bd10d9b333636093925e9c46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Sun, 11 Jan 2026 18:15:35 +0100 Subject: [PATCH] Mailing now works --- templates/nix-config/misc/mail.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/nix-config/misc/mail.nix b/templates/nix-config/misc/mail.nix index 5e7397d..060ecbc 100644 --- a/templates/nix-config/misc/mail.nix +++ b/templates/nix-config/misc/mail.nix @@ -23,6 +23,11 @@ in type = lib.types.str; default = "SENDER_MAIL_DOMAIN"; }; + smtpPort = lib.mkOption { + description = "The SMTP port"; + type = lib.types.port; + default = 465; + }; smtpUsername = lib.mkOption { description = "The SMTP username"; type = lib.types.str; @@ -41,9 +46,11 @@ in accounts.default = { auth = true; host = config.email.smtpServer; + port = config.email.smtpPort; from = config.email.fromAddress; user = config.email.smtpUsername; tls = true; + tls_starttls = false; passwordeval = "${pkgs.coreutils}/bin/cat ${config.email.smtpPasswordPath}"; }; };