diff options
Diffstat (limited to 'modules/private')
| -rw-r--r-- | modules/private/email.example.nix | 49 |
1 files changed, 3 insertions, 46 deletions
diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index 1c863cc..adf71c3 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -1,56 +1,13 @@ -{ config, lib, ... }: +{ ... }: { - config.communication.email.accounts = { + config.communication.neomutt.accounts = { "example" = { realName = "Example User"; address = "user@gmail.com"; - userName = "user@gmail.com"; - passwordCommand = "${lib.getExe config.security.gopass.package} -o mail/user@gmail.com"; + passwordGopassSecret = "mail/user@gmail.com"; flavor = "gmail.com"; primary = true; - neomutt = { - enable = true; - mailboxType = "maildir"; - extraConfig = '' - mailboxes =Inbox ="[Gmail]/Drafts" ="[Gmail]/Sent Mail" ="[Gmail]/Spam" ="[Gmail]/Trash" - ''; - }; - - folders = { - inbox = "Inbox"; - drafts = "[Gmail]/Drafts"; - sent = "[Gmail]/Sent Mail"; - trash = "[Gmail]/Trash"; - }; - - mbsync = { - enable = true; - create = "maildir"; - patterns = [ - "INBOX" - "[Gmail]/Drafts" - "[Gmail]/Sent Mail" - "[Gmail]/Spam" - "[Gmail]/Trash" - ]; - extraConfig.channel = { - SyncState = "*"; - Sync = "All"; - CopyArrivalDate = "yes"; - Expunge = "Both"; - }; - }; - - notmuch = { - enable = true; - neomutt.virtualMailboxes = [ - { - name = "All Mail"; - query = "folder:arpitchakladar/Inbox or folder:\"arpitchakladar/[Gmail]/Sent Mail\""; - } - ]; - }; }; }; } |
