From 2e0f6163f61cb1e4195f1a08ad1148e57a4f5843 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 2 Aug 2026 18:18:07 +0530 Subject: feat: Added package option to each module, darkman service - Added package options to each module which defines the package/derivation that should be used in all other modules - Added a systemd oneshot service that autosets darkman to dark mode - Removed the prompt from rofi --- modules/communication/neomutt/neomutt.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'modules/communication/neomutt/neomutt.nix') diff --git a/modules/communication/neomutt/neomutt.nix b/modules/communication/neomutt/neomutt.nix index 7dab1e9..997c948 100644 --- a/modules/communication/neomutt/neomutt.nix +++ b/modules/communication/neomutt/neomutt.nix @@ -1,5 +1,10 @@ # neomutt - Terminal email client -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: { config = lib.mkIf config.communication.neomutt.enable { xdg.desktopEntries."neomutt" = { @@ -27,7 +32,16 @@ ''; programs.neomutt = { enable = true; - package = config.communication.neomutt.package; + package = pkgs.symlinkJoin { + name = "neomutt-wrapped"; + paths = [ pkgs.neomutt ]; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/neomutt \ + --prefix PATH : ${lib.makeBinPath [ pkgs.urlscan ]} + ''; + meta.mainProgram = "neomutt"; + }; sidebar.enable = true; sort = "reverse-threads"; vimKeys = true; -- cgit v1.2.3