diff --git a/README.org b/README.org index 363c404..bb0d083 100644 --- a/README.org +++ b/README.org @@ -1219,6 +1219,20 @@ in { intelBusId = myIntelBusId; nvidiaBusId = myNvidiaBusId; }; + + # Add OpenGL support. + hardware.opengl = { + enable = true; + driSupport32Bit = true; + extraPackages32 = with pkgs; [ + pkgsi686Linux.libva + ]; + }; + + # Add user to video group. + users.users.chris = { + extraGroups = [ "video" ]; + }; } #+END_SRC diff --git a/modules/nvidia.nix b/modules/nvidia.nix index 6b7c399..b8093c6 100644 --- a/modules/nvidia.nix +++ b/modules/nvidia.nix @@ -37,4 +37,18 @@ in { intelBusId = myIntelBusId; nvidiaBusId = myNvidiaBusId; }; + + # Add OpenGL support. + hardware.opengl = { + enable = true; + driSupport32Bit = true; + extraPackages32 = with pkgs; [ + pkgsi686Linux.libva + ]; + }; + + # Add user to video group. + users.users.chris = { + extraGroups = [ "video" ]; + }; }