mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
wrapper-manager/nixgl: change wraparound.executable to wraparound.arg0
Also for consistency.
This commit is contained in:
parent
b43e5f279e
commit
d7338a8722
@ -16,7 +16,7 @@ let
|
|||||||
wrapNixGL = arg0:
|
wrapNixGL = arg0:
|
||||||
if isInNonNixOS then {
|
if isInNonNixOS then {
|
||||||
nixgl.enable = true;
|
nixgl.enable = true;
|
||||||
nixgl.wraparound.executable = arg0;
|
nixgl.wraparound.arg0 = arg0;
|
||||||
} else {
|
} else {
|
||||||
inherit arg0;
|
inherit arg0;
|
||||||
};
|
};
|
||||||
|
@ -87,7 +87,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
wraparound = {
|
wraparound = {
|
||||||
executable = lib.mkOption {
|
arg0 = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
description = ''
|
description = ''
|
||||||
The executable to be wrapped around.
|
The executable to be wrapped around.
|
||||||
@ -117,7 +117,7 @@ in
|
|||||||
if submoduleCfg.executable == null
|
if submoduleCfg.executable == null
|
||||||
then lib.getExe (nixgl config.nixgl.variant config.nixgl.src)
|
then lib.getExe (nixgl config.nixgl.variant config.nixgl.src)
|
||||||
else submoduleCfg.executable;
|
else submoduleCfg.executable;
|
||||||
prependArgs = lib.mkBefore ([ submoduleCfg.wraparound.executable ] ++ submoduleCfg.wraparound.extraArgs);
|
prependArgs = lib.mkBefore ([ submoduleCfg.wraparound.arg0 ] ++ submoduleCfg.wraparound.extraArgs);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user