1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-09 03:56:04 +01:00

sketchybar: add includeSystemPath

allow accessing binaries from the system that might not be installable
through nixpkgs

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-05-24 19:19:57 -05:00
parent c096c39afc
commit c1e6710362

View file

@ -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"