diff --git a/hosts/nixos-laptop/configuration.nix b/hosts/nixos-laptop/configuration.nix index 20fd2a90..6cbc6edf 100644 --- a/hosts/nixos-laptop/configuration.nix +++ b/hosts/nixos-laptop/configuration.nix @@ -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;