about summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-12-30 13:15:10 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2019-12-30 13:15:10 -0500
commitb43479d49f0bd6d9981e7921ed39ee67b843e459 (patch)
treeb393ad62fee27d9b62c9b74d86c599ee2bfe03b6 /nixos/modules/hardware
parent6689a385d1d86c97354bba79e5c584325b4d9bdd (diff)
downloadnixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.tar
nixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.tar.gz
nixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.tar.bz2
nixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.tar.lz
nixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.tar.xz
nixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.tar.zst
nixlib-b43479d49f0bd6d9981e7921ed39ee67b843e459.zip
nixos/nvidia: add nvidia-uvm-tools device
Related to https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1767777
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/video/nvidia.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix
index a0997b7c077e..96e6440286f1 100644
--- a/nixos/modules/hardware/video/nvidia.nix
+++ b/nixos/modules/hardware/video/nvidia.nix
@@ -201,6 +201,7 @@ in
         KERNEL=="nvidia_modeset", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia-modeset c $$(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 254'"
         KERNEL=="card*", SUBSYSTEM=="drm", DRIVERS=="nvidia", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia%n c $$(grep nvidia-frontend /proc/devices | cut -d \  -f 1) %n'"
         KERNEL=="nvidia_uvm", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia-uvm c $$(grep nvidia-uvm /proc/devices | cut -d \  -f 1) 0'"
+        KERNEL=="nvidia_uvm", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \  -f 1) 0'"
       '';
 
     boot.blacklistedKernelModules = [ "nouveau" "nvidiafb" ];