From 3d8265c5efd5e4d3ad8a90686bc81d49353fdb08 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 20 Jun 2022 00:56:57 +0200 Subject: [PATCH] email: minor formatting fix --- modules/accounts/email.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/accounts/email.nix b/modules/accounts/email.nix index 72eb538b2..03d3b2da8 100644 --- a/modules/accounts/email.nix +++ b/modules/accounts/email.nix @@ -337,17 +337,21 @@ let name = name; maildir = mkOptionDefault { path = "${name}"; }; } + (mkIf (config.flavor == "fastmail.com") { userName = mkDefault config.address; - smtp = { - host = "smtp.fastmail.com"; - port = if config.smtp.tls.useStartTls then 587 else 465; - }; + imap = { host = "imap.fastmail.com"; port = 993; }; + + smtp = { + host = "smtp.fastmail.com"; + port = if config.smtp.tls.useStartTls then 587 else 465; + }; }) + (mkIf (config.flavor == "gmail.com") { userName = mkDefault config.address;