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/neomutt/sync/default.nix | 8 ++++++++ modules/communication/neomutt/sync/mbsync.nix | 9 +++++++++ modules/communication/neomutt/sync/notmuch.nix | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 modules/communication/neomutt/sync/default.nix create mode 100644 modules/communication/neomutt/sync/mbsync.nix create mode 100644 modules/communication/neomutt/sync/notmuch.nix (limited to 'modules/communication/neomutt/sync') diff --git a/modules/communication/neomutt/sync/default.nix b/modules/communication/neomutt/sync/default.nix new file mode 100644 index 0000000..3fd9362 --- /dev/null +++ b/modules/communication/neomutt/sync/default.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + imports = [ + ./mbsync.nix + ./notmuch.nix + ]; +} diff --git a/modules/communication/neomutt/sync/mbsync.nix b/modules/communication/neomutt/sync/mbsync.nix new file mode 100644 index 0000000..6d5ad86 --- /dev/null +++ b/modules/communication/neomutt/sync/mbsync.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: + +with lib; + +{ + config = mkIf config.communication.neomutt.enable { + programs.mbsync.enable = true; + }; +} diff --git a/modules/communication/neomutt/sync/notmuch.nix b/modules/communication/neomutt/sync/notmuch.nix new file mode 100644 index 0000000..9679bf4 --- /dev/null +++ b/modules/communication/neomutt/sync/notmuch.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: + +with lib; + +{ + config = mkIf config.communication.neomutt.enable { + programs.notmuch.enable = true; + }; +} -- cgit v1.2.3