fixup! nixos: gaming: gamemode: integrate with offloading

This commit is contained in:
Guanran Wang 2024-01-08 18:51:49 +08:00
parent 1b9aec84af
commit ecfa59e73d
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -22,7 +22,7 @@
inherit (config.hardware.nvidia.prime) offload; inherit (config.hardware.nvidia.prime) offload;
in in
lib.mkIf lib.mkIf
(builtins.elem "nvidia" config.services.xserver.videoDrivers || offload.enable || offload.enableOffloadCmd) (builtins.elem "nvidia" config.services.xserver.videoDrivers && offload.enable && offload.enableOffloadCmd)
(lib.mkDefault "nvidia-offload"); (lib.mkDefault "nvidia-offload");
}; };