3p/nixpkgs: drop nvidia-sideband-socket.patch.

This commit is contained in:
Luke Granger-Brown 2022-06-19 00:55:06 +00:00
parent 3a4df29a92
commit cd991f4f6e
2 changed files with 0 additions and 23 deletions

View file

@ -1,22 +0,0 @@
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix
--- a/nixos/modules/hardware/video/nvidia.nix
+++ b/nixos/modules/hardware/video/nvidia.nix
@@ -260,6 +260,7 @@ in
BusID "${pCfg.nvidiaBusId}"
${optionalString syncCfg.allowExternalGpu "Option \"AllowExternalGpus\""}
${optionalString cfg.powerManagement.finegrained "Option \"NVreg_DynamicPowerManagement=0x02\""}
+ Option "SidebandSocketPath" "/run/nvidia-xdriver"
'';
screenSection =
''
@@ -340,7 +341,9 @@ in
systemd.tmpfiles.rules = optional config.virtualisation.docker.enableNvidia
"L+ /run/nvidia-docker/bin - - - - ${nvidia_x11.bin}/origBin"
++ optional (nvidia_x11.persistenced != null && config.virtualisation.docker.enableNvidia)
- "L+ /run/nvidia-docker/extras/bin/nvidia-persistenced - - - - ${nvidia_x11.persistenced}/origBin/nvidia-persistenced";
+ "L+ /run/nvidia-docker/extras/bin/nvidia-persistenced - - - - ${nvidia_x11.persistenced}/origBin/nvidia-persistenced"
+ ++ optional primeEnabled
+ "d /run/nvidia-xdriver 0770 root video";
boot.extraModulePackages = [ nvidia_x11.bin ];

View file

@ -1 +0,0 @@
nvidia-sideband-socket.patch