diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-02 18:18:07 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-02 18:18:07 +0530 |
| commit | 2e0f6163f61cb1e4195f1a08ad1148e57a4f5843 (patch) | |
| tree | c844351a0d22cb8a68d84b91630612b9c486abca /modules/communication | |
| parent | d213c8b40f891bd83f2977f89b25ca341ee01ca4 (diff) | |
| download | home-manager-config-2e0f6163f61cb1e4195f1a08ad1148e57a4f5843.tar.gz home-manager-config-2e0f6163f61cb1e4195f1a08ad1148e57a4f5843.zip | |
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
Diffstat (limited to 'modules/communication')
| -rw-r--r-- | modules/communication/neomutt/default.nix | 25 | ||||
| -rw-r--r-- | modules/communication/neomutt/neomutt.nix | 18 |
2 files changed, 18 insertions, 25 deletions
diff --git a/modules/communication/neomutt/default.nix b/modules/communication/neomutt/default.nix index 4bd1800..1512465 100644 --- a/modules/communication/neomutt/default.nix +++ b/modules/communication/neomutt/default.nix @@ -2,7 +2,6 @@ { config, lib, - pkgs, ... }: { @@ -20,28 +19,8 @@ package = lib.mkOption { type = lib.types.package; - default = 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"; - }; - defaultText = lib.literalExpression '' - 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"; - } - ''; + readOnly = true; + default = config.programs.neomutt.package; description = "The neomutt package to use, wrapped with urlscan in PATH."; }; }; 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; |
