nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 795e2b619ad34a5717f3f3d37f0ea272fd49e61a
parent 4e9032c7a317b42eed733d8fef5e1d82997e792b
Author: Toni Brown <me@tb148.net>
Date:   Fri,  5 Dec 2025 00:02:40 +0800

Add patch to fix get_dev_pagemap in NVIDIA open kernel module

The patch from NVIDIA's open-gpu-kernel-modules repository
addresses an issue with the get_dev_pagemap function.

Diffstat:
Mconfiguration.nix | 16+++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/configuration.nix b/configuration.nix @@ -38,7 +38,21 @@ hardware.graphics.enable = true; services.xserver.videoDrivers = ["nvidia"]; hardware.nvidia.open = true; - hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; + hardware.nvidia.package = + config.boot.kernelPackages.nvidiaPackages.stable + // { + open = config.boot.kernelPackages.nvidiaPackages.stable.open.overrideAttrs (old: { + patches = + (old.patches or []) + ++ [ + (pkgs.fetchpatch { + name = "get_dev_pagemap.patch"; + url = "https://github.com/NVIDIA/open-gpu-kernel-modules/commit/3e230516034d29e84ca023fe95e284af5cd5a065.patch"; + hash = "sha256-BhL4mtuY5W+eLofwhHVnZnVf0msDj7XBxskZi8e6/k8="; + }) + ]; + }); + }; hardware.nvidia.powerManagement.enable = true; hardware.nvidia.powerManagement.finegrained = true; hardware.nvidia.prime = {