games/steam-sandbox: Include hidraw devices

This is required for Nintendo Switch controllers (hid_nintendo does not
work with third-party ones).
This commit is contained in:
Simon Bruder 2022-05-14 10:41:36 +02:00
parent f31fb7dc5d
commit 1fdea403f0
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -68,6 +68,11 @@ let
--ro-bind /sys /sys # required for discovery
)
for hidraw in /dev/hidraw*; do
bubblewrap_args+=(--dev-bind $hidraw $hidraw)
done
unset SDL_VIDEODRIVER QT_QPA_PLATFORM # games generally dont support wayland
export PATH="${pkgs.unstable.mangohud}/bin:$PATH"