nixpkgs/nixos/modules/hardware/video
Philip Taron 29a46d2802
nixos/nvidia: Set SidebandSocketPath to a user-writable path in /run
The NVIDIA X driver uses a UNIX domain socket to pass information to
other driver components. If unable to connect to this socket, some
driver features, such as G-Sync, may not work correctly. The socket will
be bound to a file with a name unique to the X server instance created
in the directory specified by this option. Note that on Linux, an
additional abstract socket (not associated with a file) will also be
created, with this pathname socket serving as a fallback if connecting
to the abstract socket fails.

The default, which was in effect prior to this change, was `/var/run`.

The effect of not setting this option was that GDM X sessions
(and other non-root sessions) would see this warning in the log files:

```
   (WW) NVIDIA: Failed to bind sideband socket to
   (WW) NVIDIA:     '/var/run/nvidia-xdriver-b4f69129' Permission denied
```

I don't see any security implications of turning this on universally,
since there already was an abstract socket created according to the
docs.

Documentation:

1. [NVIDIA X Config Options](https://download.nvidia.com/XFree86/Linux-x86_64/440.82/README/xconfigoptions.html#SidebandSocketPath)

Diagnosis:

1. [Arch Linux BBS post](https://bbs.archlinux.org/viewtopic.php?pid=1909115#p1909115)
2024-03-19 16:34:41 -07:00
..
capture nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
uvcvideo treewide: makeWrapper to nativeBuildInputs 2022-09-26 17:53:26 +03:00
webcam Add ivsc-firmware to ipu6 option 2024-03-15 09:29:46 -05:00
amdgpu-pro.nix nixos/amdgpu-pro: replacce activationScript via tmpfiles 2023-12-29 03:21:32 +01:00
bumblebee.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
displaylink.nix displaylink: 5.6.1-59.184 -> 5.7.0-61.129 2023-06-26 09:43:22 +02:00
nvidia.nix nixos/nvidia: Set SidebandSocketPath to a user-writable path in /run 2024-03-19 16:34:41 -07:00
radeon.nix
switcheroo-control.nix nixos/switcherooControl: add package option 2024-02-25 20:49:31 -05:00