This commit is contained in:
iFargle 2023-07-16 17:35:23 +09:00
parent 665ddc3c72
commit 6282b574a7

View file

@ -15,11 +15,15 @@
# Enable nVidia PRIME Render Offload and OpenGL
# https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/p1/3th-gen/nvidia.nix
# https://libreddit.kavin.rocks/r/NixOS/comments/x04dyv/optimus_help/
boot.kernelParams = [ "nomodeset" ]
hardware = {
opengl.enable = true;
opengl.driSupport32Bit = true;
opengl.driSupport = true;
opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
# opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
nvidia = {
open = true;