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.
This commit is contained in:
1 parent
657be047ec
commit
ccd58b62ce
2 files changed
+10
No files matched your search
@@ -43,6 +43,8 @@ in
|
|||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
blacklistedKernelModules = [ "hid_nintendo" ];
|
||||||
|
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
options snd-intel-dspcfg dsp_driver=1
|
options snd-intel-dspcfg dsp_driver=1
|
||||||
options snd_hda_intel power_save=0 power_save_controller=N
|
options snd_hda_intel power_save=0 power_save_controller=N
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
{ pkgs, ... }:
|
{ 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-manager.users.alex = {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.nethack
|
pkgs.nethack
|
||||||
|
|||||||
Reference in new issue
Block a user