From 65e1ce5e82c0d272d91ca4213b0d27548768c2e7 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 12:35:27 +0530 Subject: feat(neomutt): wrap neomutt with urlscan, remove flag legend - Add `communication.neomutt.package` option wrapping neomutt with urlscan - Replace standalone urlscan in home.packages with the wrapped package - Drop flag_legend.txt and its `gl` macro binding --- modules/communication/neomutt/default.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'modules/communication/neomutt/default.nix') diff --git a/modules/communication/neomutt/default.nix b/modules/communication/neomutt/default.nix index f12ad02..70f286b 100644 --- a/modules/communication/neomutt/default.nix +++ b/modules/communication/neomutt/default.nix @@ -1,5 +1,10 @@ # Neomutt - Email suite entry point (neomutt + mbsync + notmuch) -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: { imports = [ ./account @@ -12,6 +17,24 @@ options.communication.neomutt = { enable = lib.mkEnableOption "Email suite (neomutt + mbsync + notmuch)"; + + package = lib.mkOption { + type = lib.types.package; + default = pkgs.symlinkJoin { + name = "neomutt-wrapped"; + paths = with pkgs; [ + neomutt + urlscan + ]; + }; + defaultText = lib.literalExpression '' + pkgs.symlinkJoin { + name = "neomutt-wrapped"; + paths = with pkgs; [ neomutt urlscan ]; + } + ''; + description = "The neomutt package to use, wrapped with urlscan in PATH."; + }; }; config = lib.mkIf config.communication.neomutt.enable { -- cgit v1.2.3