aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-10 02:29:12 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-10 02:29:12 +0530
commit5f2ddbb0f4b07a773e8ae43ed27e65147f1cf983 (patch)
tree08edf9e966252ce4a92cacfa791cc9dd2e4475ce /modules/private
parentd05ec52df2e06ab30f1b3be62aab8af65ecbdee1 (diff)
downloadhome-manager-config-5f2ddbb0f4b07a773e8ae43ed27e65147f1cf983.tar.gz
home-manager-config-5f2ddbb0f4b07a773e8ae43ed27e65147f1cf983.zip
chore: made the example for private email.examle.nix slightly more verbose for gmail
Diffstat (limited to 'modules/private')
-rw-r--r--modules/private/email.example.nix26
1 files changed, 15 insertions, 11 deletions
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;
};
};
}