From 367e656de4286e8e8f06e36e59ea6d23796853f8 Mon Sep 17 00:00:00 2001 From: cnst Date: Sat, 21 Sep 2024 23:49:11 +0200 Subject: [PATCH] nvidia fixes --- hosts/toothpc/default.nix | 1 + hosts/toothpc/modules.nix | 2 +- system/modules/hardware/graphics/nvidia/default.nix | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/toothpc/default.nix b/hosts/toothpc/default.nix index 5723d45d..f3f6c910 100644 --- a/hosts/toothpc/default.nix +++ b/hosts/toothpc/default.nix @@ -45,6 +45,7 @@ in { kernelParams = [ "quiet" "splash" + "nvidia_drm.fbdev=1" "nvidia-drm.modeset=1" ]; }; diff --git a/hosts/toothpc/modules.nix b/hosts/toothpc/modules.nix index 28c8f315..6b01a8a1 100644 --- a/hosts/toothpc/modules.nix +++ b/hosts/toothpc/modules.nix @@ -38,7 +38,7 @@ }; nvidia = { enable = true; - package = "production"; # set to beta/stable/production depending on your needs + package = "beta"; # set to beta/stable/production depending on your needs }; }; network = { diff --git a/system/modules/hardware/graphics/nvidia/default.nix b/system/modules/hardware/graphics/nvidia/default.nix index 693d970a..b65d1ba1 100644 --- a/system/modules/hardware/graphics/nvidia/default.nix +++ b/system/modules/hardware/graphics/nvidia/default.nix @@ -11,6 +11,7 @@ nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" '' export __NV_PRIME_RENDER_OFFLOAD=1 export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 + export __GL_VRR_ALLOWED=1 export __GLX_VENDOR_LIBRARY_NAME=nvidia export __VK_LAYER_NV_optimus=NVIDIA_only export VK_DRIVER_FILES="${builtins.concatStringsSep ":" vulkanDriverFiles}"