aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-04-23 04:00:13 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-04-23 04:00:13 +0530
commit58e84ff53ceaf415e2a598c0122da526a27c3f38 (patch)
treef54ddcd6d91092e6d63c7385d65d260e628d47e2 /modules/scripts/default.nix
parent5ba4319dd246e018abdfd7df8c491bdef907ca1c (diff)
downloadhome-manager-config-58e84ff53ceaf415e2a598c0122da526a27c3f38.tar.gz
home-manager-config-58e84ff53ceaf415e2a598c0122da526a27c3f38.zip
passing paths to the the executables used in the script
Diffstat (limited to 'modules/scripts/default.nix')
-rw-r--r--modules/scripts/default.nix20
1 files changed, 18 insertions, 2 deletions
diff --git a/modules/scripts/default.nix b/modules/scripts/default.nix
index 9c7bba8..b4a6106 100644
--- a/modules/scripts/default.nix
+++ b/modules/scripts/default.nix
@@ -45,7 +45,14 @@ let
};
file-preview = {
path = ./file-preview.sh;
- env = { };
+ env = {
+ BAT = lib.getExe pkgs.bat;
+ FILE = lib.getExe pkgs.file;
+ FFMPEG = lib.getExe' pkgs.ffmpeg-full "ffmpeg";
+ FFPROBE = lib.getExe' pkgs.ffmpeg-full "ffprobe";
+ OUCH = lib.getExe pkgs.ouch;
+ PDFTOPPM = lib.getExe' pkgs.poppler-utils "pdftoppm";
+ };
deps = [
pkgs.bat
pkgs.file
@@ -55,7 +62,16 @@ let
];
conditions = [
{
- option = "tools.fzf.enable";
+ option = "tools.ffmpeg.enable";
+ value = true;
+ }
+ {
+ option = "tools.ouch.enable";
+ value = true;
+ }
+ {
+ # not a dependency
+ option = "tools.zathura.enable";
value = true;
}
];