From c1e671036224089937e111e32ea899f59181c383 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 24 May 2025 19:19:57 -0500 Subject: [PATCH] sketchybar: add includeSystemPath allow accessing binaries from the system that might not be installable through nixpkgs Signed-off-by: Austin Horstman --- modules/programs/sketchybar.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/programs/sketchybar.nix b/modules/programs/sketchybar.nix index 7df44b625..a92e26447 100644 --- a/modules/programs/sketchybar.nix +++ b/modules/programs/sketchybar.nix @@ -131,6 +131,15 @@ in ''; }; + includeSystemPath = mkOption { + type = types.bool; + default = true; + description = '' + Whether to include common system `PATH` in the wrapper. + This allows sketchybar to access system binaries. + ''; + }; + service = { enable = mkEnableOption "sketchybar service" // { default = true; @@ -205,6 +214,13 @@ in "${lib.makeBinPath pathPackages}" ]) + (lib.optional cfg.includeSystemPath [ + "--suffix" + "PATH" + ":" + "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin" + ]) + (lib.optional (luaPaths != [ ]) [ "--prefix" "LUA_PATH"