From a9fdb6d4358c8d34da52d13a960aa36182b65474 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 11 Jul 2026 01:32:34 +0530 Subject: chore: updated the email.example.nix added more configuration example to handle the GMail's label based email indexing --- modules/private/email.example.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'modules/private/email.example.nix') diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index d816b32..2f48b90 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -3,25 +3,31 @@ { config.accounts.email.accounts = { "example" = { - realName = "example"; + realName = "Example User"; address = "user@gmail.com"; userName = "user@gmail.com"; passwordCommand = "${lib.getExe config.programs.gopass.package} -o mail/user@gmail.com"; flavor = "gmail.com"; primary = true; - neomutt.enable = true; + neomutt = { + enable = true; + mailboxType = "maildir"; + }; - neomutt.extraConfig = '' - mailboxes "+Inbox" "+[Gmail]/Drafts" "+[Gmail]/Spam" "+[Gmail]/Trash" - ''; + folders = { + inbox = "Inbox"; + drafts = "[Gmail]/Drafts"; + sent = "[Gmail]/Sent Mail"; + trash = "[Gmail]/Trash"; + }; mbsync = { enable = true; create = "maildir"; patterns = [ - "Inbox" + "INBOX" "\"[Gmail]/Drafts\"" - "\"[Gmail]/Spam\"" + "\"[Gmail]/Sent Mail\"" "\"[Gmail]/Trash\"" ]; extraConfig.channel = { -- cgit v1.2.3