diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 05:06:05 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 05:06:05 +0530 |
| commit | c37c4a69fc895099109fc5211bf9449592ebc518 (patch) | |
| tree | 57f31b37ec4f2d0b4a109c53db61393d05d9cb1a | |
| parent | 9523f5ea00c85583fa9372557d6d003d2ca4b3c4 (diff) | |
| download | home-manager-config-c37c4a69fc895099109fc5211bf9449592ebc518.tar.gz home-manager-config-c37c4a69fc895099109fc5211bf9449592ebc518.zip | |
fix(communication/neomutt): fixed neomutt-launcher wrapper paths
| -rw-r--r-- | modules/communication/neomutt/default.nix | 16 | ||||
| -rw-r--r-- | modules/communication/neomutt/neomutt-launcher.sh | 3 |
2 files changed, 12 insertions, 7 deletions
diff --git a/modules/communication/neomutt/default.nix b/modules/communication/neomutt/default.nix index da64a13..6bc363b 100644 --- a/modules/communication/neomutt/default.nix +++ b/modules/communication/neomutt/default.nix @@ -42,16 +42,22 @@ let }; neomuttLauncher = pkgs.writeShellApplication { - name = "neomutt"; + name = "neomutt-launcher"; runtimeInputs = [ pkgs.systemd pkgs.procps pkgs.neomutt pkgs.urlscan ]; - text = builtins.replaceStrings [ "@@PROFILE_BIN@@" ] [ "${config.home.profileDirectory}/bin" ] ( - builtins.readFile ./neomutt-launcher.sh - ); + text = + builtins.replaceStrings + [ + "@@NEOMUTT_BIN@@" + ] + [ + (lib.getExe pkgs.neomutt) + ] + (builtins.readFile ./neomutt-launcher.sh); }; neomuttSyncCompletion = @@ -113,7 +119,7 @@ in pkgs.neomutt neomuttSync ]; - meta.mainProgram = "neomutt"; + meta.mainProgram = "neomutt-launcher"; }; sidebar.enable = true; sort = "reverse-threads"; diff --git a/modules/communication/neomutt/neomutt-launcher.sh b/modules/communication/neomutt/neomutt-launcher.sh index 3caa9df..62cbe09 100644 --- a/modules/communication/neomutt/neomutt-launcher.sh +++ b/modules/communication/neomutt/neomutt-launcher.sh @@ -9,5 +9,4 @@ stop_service() { } trap stop_service EXIT -export PATH="@@PROFILE_BIN@@:$PATH" -neomutt "$@" +"@@NEOMUTT_BIN@@" "$@" |
