From bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 10 Jul 2026 02:05:18 +0530 Subject: feat: using neomutt instead of meli for the tui email client using a private module that stores the private config options for the user which are not to be pushed to the public repo --- modules/private/email.example.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'modules/private/email.example.nix') diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index ae3b475..0e35e26 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -1,16 +1,14 @@ { config, ... }: -let - mailDir = "${config.home.homeDirectory}/.local/mail"; -in { - accounts.email.accounts = { + 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"; flavor = "gmail.com"; + primary = true; mbsync = { enable = true; @@ -28,16 +26,4 @@ in imapnotify.enable = false; }; }; - - # Mbsync config - programs.mbsync = { - enable = true; - directory = mailDir; - }; - - # Notmuch config - programs.notmuch = { - enable = true; - database.path = "${mailDir}/.notmuch"; - }; } -- cgit v1.2.3