Merge pull request #61 from cnsta/nvidfail

nvidia fixes
This commit is contained in:
cnsta
2024-09-21 23:49:47 +02:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ in {
kernelParams = [
"quiet"
"splash"
"nvidia_drm.fbdev=1"
"nvidia-drm.modeset=1"
];
};

View File

@@ -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 = {

View File

@@ -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}"