test
This commit is contained in:
parent
665ddc3c72
commit
6282b574a7
1 changed files with 5 additions and 1 deletions
|
@ -15,11 +15,15 @@
|
||||||
|
|
||||||
# Enable nVidia PRIME Render Offload and OpenGL
|
# Enable nVidia PRIME Render Offload and OpenGL
|
||||||
# https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/p1/3th-gen/nvidia.nix
|
# 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 = {
|
hardware = {
|
||||||
opengl.enable = true;
|
opengl.enable = true;
|
||||||
opengl.driSupport32Bit = true;
|
opengl.driSupport32Bit = true;
|
||||||
opengl.driSupport = true;
|
opengl.driSupport = true;
|
||||||
opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
# opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||||
|
|
||||||
nvidia = {
|
nvidia = {
|
||||||
open = true;
|
open = true;
|
||||||
|
|
Loading…
Reference in a new issue