From 54539eb80e92614e099ec0a7d374f7fa4636dc2b Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Wed, 16 Jan 2019 23:33:01 +0100 Subject: [PATCH] =?UTF-8?q?d=C3=A9sactivation=20joystick=20Corsair=20K70?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Un joystick suplémentaire correspondant au clavier était ajouté dans /dev/input/js* rendant Rocket League injouable. Cette règle supprime directement ce joystick --- systems/PC-Fixe/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/systems/PC-Fixe/configuration.nix b/systems/PC-Fixe/configuration.nix index 88012414c..f91e7f39a 100644 --- a/systems/PC-Fixe/configuration.nix +++ b/systems/PC-Fixe/configuration.nix @@ -37,6 +37,11 @@ usb-modeswitch-data # Logitech G920 ]; + # Corsair K70 + services.udev.extraRules = '' + SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="00", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1b09", RUN+="${pkgs.bash}/bin/sh -c '${pkgs.coreutils}/bin/echo -n %k > /sys''${DEVPATH}/driver/unbind'" + ''; + networking.hostName = "paul-fixe"; # Define your hostname. networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant.