From 5f2ddbb0f4b07a773e8ae43ed27e65147f1cf983 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 10 Jul 2026 02:29:12 +0530 Subject: chore: made the example for private email.examle.nix slightly more verbose for gmail --- modules/private/email.example.nix | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'modules/private') diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index 0e35e26..2347489 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -1,29 +1,33 @@ -{ config, ... }: +{ config, lib, ... }: { config.accounts.email.accounts = { "example" = { - realName = "Example User"; - address = "user@example.com"; - userName = "user@example.com"; - passwordCommand = "${config.programs.gopass.package}/bin/gopass show -o mail/example"; + realName = "example"; + 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; mbsync = { enable = true; - createMailbox = true; + create = "maildir"; + patterns = [ + "INBOX" + "\"[Gmail]/All Mail\"" + "\"[Gmail]/Sent Mail\"" + "\"[Gmail]/Drafts\"" + "\"[Gmail]/Spam\"" + "\"[Gmail]/Trash\"" + ]; extraConfig.channel = { - Patterns = "*"; SyncState = "*"; }; }; notmuch.enable = true; - - mu.enable = false; - msmtp.enable = false; - imapnotify.enable = false; }; }; } -- cgit v1.2.3