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"