Files
nixos-configs/hosts/backwards/modules/games/default.nix
T
Alexander Heldt ccd58b62ce backwards: Enable Steam and let it use the 8BitDo pad
`hid_nintendo` claims the pad when it is in Nintendo Switch mode, which
leaves Steam unable to reach it through hidraw. Blacklist the module and
tag the device with `uaccess` so Steam can open it.
2026-10-20 21:20:31 +02:00

26 lines
560 B
Nix

{ pkgs, ... }:
{
programs.steam.enable = true;
services.udev.extraRules = ''
# 8BitDo in Nintendo Switch mode - allow Steam hidraw access
KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", \
MODE="0660", GROUP="input", TAG+="uaccess"
'';
home-manager.users.alex = {
home.packages = [
pkgs.nethack
pkgs.moonlight-qt
pkgs.pcsx2
(pkgs.retroarch.withCores (cores: [
pkgs.libretro.snes9x
pkgs.libretro.genesis-plus-gx
pkgs.libretro.swanstation
]))
];
};
}