diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-10 02:05:18 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-10 02:05:18 +0530 |
| commit | bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e (patch) | |
| tree | 596912421d29f6e58a9a45108df52cb4e1e68876 /modules/programs/email/default.nix | |
| parent | ee32d0d0813f9870d89fb7d821633fd8b4a9987a (diff) | |
| download | home-manager-config-bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e.tar.gz home-manager-config-bf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e.zip | |
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
Diffstat (limited to 'modules/programs/email/default.nix')
| -rw-r--r-- | modules/programs/email/default.nix | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/modules/programs/email/default.nix b/modules/programs/email/default.nix index 36dfc95..3a57cf0 100644 --- a/modules/programs/email/default.nix +++ b/modules/programs/email/default.nix @@ -2,12 +2,11 @@ { config, lib, - pkgs, ... }: let - mailDir = "${config.home.homeDirectory}/.local/mail"; + mailDir = "${config.home.homeDirectory}/.local/share/mail"; in { options.programs.email = { @@ -15,39 +14,11 @@ in }; config = lib.mkIf config.programs.email.enable { - home.packages = [ - pkgs.mbsync - pkgs.notmuch - ]; + programs.mbsync.enable = true; + programs.notmuch.enable = true; - home.sessionVariables = { - MAILDIR = mailDir; - NOTMUCH_CONFIG = "${config.xdg.configHome}/notmuch/notmuchrc"; - }; + accounts.email.maildirBasePath = mailDir; - xdg.configFile."notmuch/notmuch.config" = { - text = '' - [database] - path=${mailDir}/.notmuch - - [user] - name= - address= - primary_key= - - [new] - tags=unclassified;new; - ignore= - - [search] - exclude_tags=deleted;spam; - - [maildir] - synchronize_flags=true - - [crypto] - gpg_path=${pkgs.gnupg}/bin/gpg - ''; - }; + home.sessionVariables.MAILDIR = mailDir; }; } |
