aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs/neomutt/assertions.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-10 02:05:18 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-10 02:05:18 +0530
commitbf7a0f704a7ffc64d77f53d940f49f0bd9d4d35e (patch)
tree596912421d29f6e58a9a45108df52cb4e1e68876 /modules/programs/neomutt/assertions.nix
parentee32d0d0813f9870d89fb7d821633fd8b4a9987a (diff)
downloadhome-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/neomutt/assertions.nix')
-rw-r--r--modules/programs/neomutt/assertions.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/programs/neomutt/assertions.nix b/modules/programs/neomutt/assertions.nix
new file mode 100644
index 0000000..d651047
--- /dev/null
+++ b/modules/programs/neomutt/assertions.nix
@@ -0,0 +1,27 @@
+{ config, ... }:
+
+{
+ assertions = [
+ {
+ assertion = !config.programs.meli.enable || config.programs.less.enable;
+ message = ''
+ programs.meli is enabled but programs.less.enable is not.
+ meli requires less as its pager. Please enable programs.less.
+ '';
+ }
+ {
+ assertion = !config.programs.meli.enable || config.programs.bat.enable;
+ message = ''
+ programs.meli is enabled but programs.bat.enable is not.
+ meli requires bat for text/html filtering. Please enable programs.bat.
+ '';
+ }
+ {
+ assertion = !config.programs.meli.enable || config.programs.email.enable;
+ message = ''
+ programs.meli is enabled but programs.email.enable is not.
+ meli requires the email module (mbsync + notmuch) to be enabled.
+ '';
+ }
+ ];
+}