summary refs log tree commit diff
path: root/nixos/modules/hardware/video
diff options
context:
space:
mode:
authorCorey O'Connor <coreyoconnor@gmail.com>2014-05-03 07:28:21 -0700
committerCorey O'Connor <coreyoconnor@gmail.com>2014-11-29 16:42:00 -0800
commitb2f3e10a35fe213e04f1fe88b64cc1069b376365 (patch)
tree9a9dd388fbac78b4739850a4087b2fcd6b9a1b97 /nixos/modules/hardware/video
parent20487919b2d349895798af6579b1097528f17ad2 (diff)
downloadnixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.tar
nixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.tar.gz
nixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.tar.bz2
nixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.tar.lz
nixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.tar.xz
nixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.tar.zst
nixlib-b2f3e10a35fe213e04f1fe88b64cc1069b376365.zip
Add primus and extend bumblebee to support 32bit/64bit multilib architectures.
Using primusrun will work as expected in a multilib environment. Even if the initial program
executes a antoehr program of the another architecture. Assuming the program does not modify
LD_LIBRARY_PATH inappropriately.

This does not update virtualgl for seemless multilib. I was unable to get a mixed 64/32 bit
environment to work with VirtualGL. The mechanism VirtualGL uses to inject the fake GL library would
fail if both 32bit and 64 bit libraries were in the environment. Instead the bumblebee package
creates a optirun32 executable that can be used to run a 32bit executable with optimus on a 64 bit
host. This is not created if the host is 32bit.

For my usage, gaming under wine, the primusrun executable works as expected regardless of
32bit/64bit.
Diffstat (limited to 'nixos/modules/hardware/video')
-rw-r--r--nixos/modules/hardware/video/bumblebee.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/bumblebee.nix b/nixos/modules/hardware/video/bumblebee.nix
index 52dea798f87a..7b48d9d1fcf5 100644
--- a/nixos/modules/hardware/video/bumblebee.nix
+++ b/nixos/modules/hardware/video/bumblebee.nix
@@ -30,7 +30,7 @@ with lib;
     boot.kernelModules = [ "bbswitch" ];
     boot.extraModulePackages = [ kernel.bbswitch kernel.nvidia_x11 ];
 
-    environment.systemPackages = [ pkgs.bumblebee ];
+    environment.systemPackages = [ pkgs.bumblebee pkgs.primus ];
 
     systemd.services.bumblebeed = {
       description = "Bumblebee Hybrid Graphics Switcher";