From d2719f81b1f0c6499255c4cd9a2917dba7f5176a Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sun, 15 Aug 2021 11:30:41 -0400 Subject: [PATCH] Add NVIDIA opengl support --- README.org | 14 ++++++++++++++ modules/nvidia.nix | 14 ++++++++++++++ 2 files changed, 28 insertions(+) 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" ]; + }; }