From 36b564d978343f559ab4317a7810488a3bb79ef0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 1 May 2022 10:14:04 +0200 Subject: [PATCH] games/steam-sandbox: Make controllers work The full sysfs is required for steam to discover controllers. Despite some individual games detecting them, for full controller support (especially in wine/proton), steam has to detect them. --- users/simon/modules/games.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/users/simon/modules/games.nix b/users/simon/modules/games.nix index f56a218..1a5a305 100644 --- a/users/simon/modules/games.nix +++ b/users/simon/modules/games.nix @@ -38,8 +38,6 @@ let --ro-bind /tmp/.X11-unix /tmp/.X11-unix --ro-bind "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" --dev-bind /dev/dri /dev/dri - --ro-bind /sys/dev/char /sys/dev/char - --ro-bind-try /sys/devices/pci0000:00 /sys/devices/pci0000:00 # FIXME: hardcoded path for sayuri --ro-bind /run/opengl-driver /run/opengl-driver --ro-bind-try /run/opengl-driver-32 /run/opengl-driver-32 @@ -66,6 +64,7 @@ let # input --dev-bind /dev/input /dev/input --dev-bind-try /dev/uinput /dev/uinput + --ro-bind /sys /sys # required for discovery ) unset SDL_VIDEODRIVER QT_QPA_PLATFORM # games generally don’t support wayland