From 1fdea403f07314111f1100cbe8aa7748c394e2a5 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 14 May 2022 10:41:36 +0200 Subject: [PATCH] games/steam-sandbox: Include hidraw devices This is required for Nintendo Switch controllers (hid_nintendo does not work with third-party ones). --- users/simon/modules/games.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/users/simon/modules/games.nix b/users/simon/modules/games.nix index 8450eb8..b35e625 100644 --- a/users/simon/modules/games.nix +++ b/users/simon/modules/games.nix @@ -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 don’t support wayland export PATH="${pkgs.unstable.mangohud}/bin:$PATH"