fix logitech g920 wheel
This commit is contained in:
parent
35cb26cf49
commit
458f15bf9a
1 changed files with 16 additions and 0 deletions
|
|
@ -34,5 +34,21 @@ with lib;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.steam-hardware.enable = true;
|
||||||
|
environment.etc.logitechG920 = {
|
||||||
|
target = "usb_modeswitch.d/046d:c261";
|
||||||
|
text = ''
|
||||||
|
DefaultVendor=046d
|
||||||
|
DefaultProduct=c261
|
||||||
|
MessageEndpoint=01
|
||||||
|
ResponseEndpoint=01
|
||||||
|
TargetClass=0x03
|
||||||
|
MessageContent="0f00010142"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
ATTR{idVendor}=="046d", ATTR{idProduct}=="c261", RUN+="${pkgs.usb-modeswitch}/bin/usb_modeswitch -c '/etc/usb_modeswitch.d/046d:c261'"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue