lutris: use optimus and nvidia from environment

That's the correct way because these should be enabled with NixOS
modules.
This commit is contained in:
Nikolay Amiantov
2019-07-18 12:43:14 +03:00
parent b0a961e6fa
commit 48d98b02f6
3 changed files with 10 additions and 20 deletions
+4 -8
View File
@@ -3,15 +3,12 @@
, gdk_pixbuf, atk, webkitgtk, gst_all_1
, evdev, pyyaml, pygobject3, requests, pillow
, xrandr, pciutils, psmisc, glxinfo, vulkan-tools, xboxdrv, pulseaudio, p7zip, xgamma
, libstrangle, wine, fluidsynth
, optimusSupport ? false, primus, bumblebee
, nvidiaSmiSupport ? false, nvidia_x11
, steamSupport ? true, steam
, libstrangle, wine, fluidsynth, xorgserver
}:
let
# See lutris/util/linux.py
binPath = lib.makeBinPath ([
binPath = lib.makeBinPath [
xrandr
pciutils
psmisc
@@ -24,9 +21,8 @@ let
libstrangle
wine
fluidsynth
] ++ lib.optionals optimusSupport [ primus bumblebee ]
++ lib.optional nvidiaSmiSupport nvidia_x11
++ lib.optional steamSupport steam);
xorgserver
];
gstDeps = with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly