mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
wrapper-manager/nixgl: fix module
This commit is contained in:
parent
b2c33db951
commit
c03acceac7
@ -66,7 +66,9 @@ in
|
|||||||
|
|
||||||
options.wrappers =
|
options.wrappers =
|
||||||
let
|
let
|
||||||
nixglWrapperModule = { config, lib, name, ... }: {
|
nixglWrapperModule = { config, lib, name, ... }: let
|
||||||
|
submoduleCfg = config.nixgl;
|
||||||
|
in {
|
||||||
options.nixgl = {
|
options.nixgl = {
|
||||||
enable = lib.mkEnableOption "wrapping NixGL for this wrapper" // {
|
enable = lib.mkEnableOption "wrapping NixGL for this wrapper" // {
|
||||||
default = cfg.enableAll;
|
default = cfg.enableAll;
|
||||||
@ -112,10 +114,10 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf config.nixgl.enable {
|
config = lib.mkIf config.nixgl.enable {
|
||||||
arg0 =
|
arg0 =
|
||||||
if config.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 config.executable;
|
else submoduleCfg.executable;
|
||||||
prependArgs = lib.mkBefore ([ config.nixgl.wraparound.executable ] ++ config.nixgl.wraparound.extraArgs);
|
prependArgs = lib.mkBefore ([ submoduleCfg.wraparound.executable ] ++ submoduleCfg.wraparound.extraArgs);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user