nixpkgs/nixos/modules/hardware
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
..
cpu nixos/hardware/cpu/intel/msr: init 2023-10-22 09:40:59 +02:00
keyboard nixos/qmk: ensure plugdev groups exists 2023-12-14 10:01:19 +01:00
network treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
onlykey treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
raid nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
sensor nixos: fix typos 2023-05-19 22:31:04 -04:00
video nixos/nvidia: Set SidebandSocketPath to a user-writable path in /run 2024-03-19 16:34:41 -07:00
acpilight.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
all-firmware.nix nixos/firmware: Omit removed rtl8723-bs package 2023-12-18 10:49:40 -08:00
bladeRF.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
brillo.nix treewide: use mkEnableOption in nixos modules 2022-11-10 09:30:00 +01:00
ckb-next.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
corectrl.nix nixos/corectrl: add package option 2024-01-23 15:35:44 -05:00
decklink.nix nixos/decklink: init 2023-09-09 19:45:50 +02:00
device-tree.nix nixos/device-tree: Allow custom dtbSource and expose compileDts 2023-09-24 11:58:13 -07:00
digitalbitbox.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
flipperzero.nix nixos/flipperzero: init 2023-02-21 17:45:14 +01:00
flirc.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
gkraken.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
glasgow.nix nixos/glasgow: init hardware module 2023-09-21 11:48:01 -05:00
gpgsmartcards.nix nixos: fix typos 2022-12-17 19:31:14 -05:00
hackrf.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
i2c.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
infiniband.nix nixos/infiniband: add support for configurable guids 2023-09-07 19:59:33 +02:00
ksm.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
ledger.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
logitech.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
mcelog.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
new-lg4ff.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
nitrokey.nix nitrokey-udev-rules: replace with libnitrokey 2023-03-27 04:02:13 +02:00
opengl.nix vaapiIntel: rename to intel-vaapi-driver 2023-05-31 15:05:32 +02:00
openrazer.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
opentabletdriver.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
pcmcia.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
printers.nix nixos/hardware/printers: fix empty ppdOptions 2024-02-25 19:06:35 +01:00
rtl-sdr.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
saleae-logic.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
sata.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
steam-hardware.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
system-76.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
tuxedo-keyboard.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
ubertooth.nix treewide: use mkEnableOption in nixos modules 2022-11-10 09:30:00 +01:00
uinput.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
usb-modeswitch.nix nixos/usb-modeswitch: Rename module from usbWwan 2023-07-25 17:07:00 +02:00
usb-storage.nix nixos/usbStorage: update device flag 2023-11-02 17:29:30 +03:00
wooting.nix wooting: clarify requirements for hardware option to work 2023-07-24 22:34:52 +02:00
xone.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
xpadneo.nix linuxPackages.xpadneo: 0.9.4 -> 0.9.5 2022-09-20 18:52:46 -04:00