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:
parent
c096c39afc
commit
c1e6710362
1 changed files with 16 additions and 0 deletions
|
|
@ -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 = {
|
service = {
|
||||||
enable = mkEnableOption "sketchybar service" // {
|
enable = mkEnableOption "sketchybar service" // {
|
||||||
default = true;
|
default = true;
|
||||||
|
|
@ -205,6 +214,13 @@ in
|
||||||
"${lib.makeBinPath pathPackages}"
|
"${lib.makeBinPath pathPackages}"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
(lib.optional cfg.includeSystemPath [
|
||||||
|
"--suffix"
|
||||||
|
"PATH"
|
||||||
|
":"
|
||||||
|
"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin"
|
||||||
|
])
|
||||||
|
|
||||||
(lib.optional (luaPaths != [ ]) [
|
(lib.optional (luaPaths != [ ]) [
|
||||||
"--prefix"
|
"--prefix"
|
||||||
"LUA_PATH"
|
"LUA_PATH"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue