diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-23 00:56:24 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-23 00:56:24 +0530 |
| commit | 2ad7b06ced0ffa39d20e6be41466e5bd834ee956 (patch) | |
| tree | 86bc522072c09c80098bff8854d2377137a6c39c /modules/communication/neomutt/assertions.nix | |
| parent | a61001ad8696f6d9a5ebe0f18a71d747941ec9d0 (diff) | |
| download | home-manager-config-2ad7b06ced0ffa39d20e6be41466e5bd834ee956.tar.gz home-manager-config-2ad7b06ced0ffa39d20e6be41466e5bd834ee956.zip | |
feat(w3m): add module with desktop entry + integrate into neomutt
- modules/web/w3m: enable/package options, desktop entry via kitty,
assertion
- modules/web/w3m: delegate to programs.w3m under the hood
- modules/web/w3m: default package to programs.w3m.finalPackage
- modules/desktop/xdg: add portal config with common.default = "*"
- neomutt/nix: use lib.getExe' config.web.w3m.package for w3m refs
- neomutt/assertions: add w3m dependency assertion
- users/arpit: enable web.w3m
Diffstat (limited to 'modules/communication/neomutt/assertions.nix')
| -rw-r--r-- | modules/communication/neomutt/assertions.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/communication/neomutt/assertions.nix b/modules/communication/neomutt/assertions.nix index dea9d41..c4ce62a 100644 --- a/modules/communication/neomutt/assertions.nix +++ b/modules/communication/neomutt/assertions.nix @@ -1,4 +1,4 @@ -# Assertions - Validates neomutt dependencies (less, bat, kitty) are enabled +# Assertions - Validates neomutt dependencies (less, bat, kitty, w3m) are enabled { config, ... }: { assertions = [ @@ -23,5 +23,12 @@ neomutt's desktop entry requires kitty as the terminal launcher. Please enable terminal.kitty. ''; } + { + assertion = !config.communication.neomutt.enable || config.web.w3m.enable; + message = '' + communication.neomutt is enabled but web.w3m.enable is not. + neomutt uses w3m for HTML email rendering. Please enable web.w3m. + ''; + } ]; } |
