From 6282b574a73c819bdf712022a1bc310773af0df6 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 16 Jul 2023 17:35:23 +0900 Subject: [PATCH] test --- hosts/nixos-laptop/configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;