aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/email.example.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-11 01:32:34 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-11 01:32:34 +0530
commita9fdb6d4358c8d34da52d13a960aa36182b65474 (patch)
tree47a0871306eb7d53de62bd1e12461a7944b039c3 /modules/private/email.example.nix
parent5453d81c88fa9696de74fc8af09d1b75a9f7c8c3 (diff)
downloadhome-manager-config-a9fdb6d4358c8d34da52d13a960aa36182b65474.tar.gz
home-manager-config-a9fdb6d4358c8d34da52d13a960aa36182b65474.zip
chore: updated the email.example.nix
added more configuration example to handle the GMail's label based email indexing
Diffstat (limited to 'modules/private/email.example.nix')
-rw-r--r--modules/private/email.example.nix20
1 files changed, 13 insertions, 7 deletions
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 = {