From 6b5020927fbb0a041f54c2224d4734e97cf78097 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 15 Jul 2026 21:55:29 +0530 Subject: feat: reworked the structure for communication/neomutt Using neomutt as the module for email instead of just "email" as used previously. "email" was ambigious in that it was too vague on what it was supposed to do with email, now neomutt clearly specifies that we plan to use neomutt as our email client. However mbsync and notmuch are still used under the hood that is not reflected in the module name "neomutt". This is fine as they only serve the purpose of downloading and querying the emails which may be considered a background feature. --- modules/communication/email/default.nix | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 modules/communication/email/default.nix (limited to 'modules/communication/email') diff --git a/modules/communication/email/default.nix b/modules/communication/email/default.nix deleted file mode 100644 index 969403d..0000000 --- a/modules/communication/email/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ - config, - lib, - ... -}: - -let - mailDir = "${config.home.homeDirectory}/.local/share/mail"; -in -{ - options.communication.email = { - enable = lib.mkEnableOption "Email suite (mbsync + notmuch)"; - - accounts = lib.mkOption { - type = lib.types.attrsOf lib.types.anything; - default = { }; - description = "Email accounts. Each attribute name is an account identifier."; - }; - }; - - config = lib.mkIf config.communication.email.enable { - programs.mbsync.enable = true; - programs.notmuch.enable = true; - - accounts.email.maildirBasePath = mailDir; - accounts.email.accounts = config.communication.email.accounts; - - home.sessionVariables.MAILDIR = mailDir; - }; -} -- cgit v1.2.3