diff options
Diffstat (limited to 'modules/private/email.example.nix')
| -rw-r--r-- | modules/private/email.example.nix | 20 |
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 = { |
