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}"; }; };