wooting-udev-rules: init at 20190601
Signed-off-by: David Wood <david.wood@codeplay.com>
This commit is contained in:
parent
096c2b4a4b
commit
4a0819805a
23
pkgs/os-specific/linux/wooting-udev-rules/default.nix
Normal file
23
pkgs/os-specific/linux/wooting-udev-rules/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ stdenv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "wooting-udev-rules";
|
||||||
|
version = "20190601";
|
||||||
|
|
||||||
|
# Source: https://wooting.helpscoutdocs.com/article/68-wootility-configuring-device-access-for-wootility-under-linux-udev-rules
|
||||||
|
src = [ ./wooting.rules ];
|
||||||
|
|
||||||
|
unpackPhase = ":";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://wooting.helpscoutdocs.com/article/34-linux-udev-rules;
|
||||||
|
description = "udev rules that give NixOS permission to communicate with Wooting keyboards";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
license = "unknown";
|
||||||
|
maintainers = with maintainers; [ davidtwco ];
|
||||||
|
};
|
||||||
|
}
|
9
pkgs/os-specific/linux/wooting-udev-rules/wooting.rules
Normal file
9
pkgs/os-specific/linux/wooting-udev-rules/wooting.rules
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Wooting One
|
||||||
|
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", MODE:="0660", GROUP="input"
|
||||||
|
# Wooting One update mode
|
||||||
|
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", MODE:="0660", GROUP="input"
|
||||||
|
|
||||||
|
# Wooting Two
|
||||||
|
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", MODE:="0660", GROUP="input"
|
||||||
|
# Wooting Two update mode
|
||||||
|
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2403", MODE:="0660", GROUP="input"
|
@ -17052,6 +17052,8 @@ in
|
|||||||
|
|
||||||
wirelesstools = callPackage ../os-specific/linux/wireless-tools { };
|
wirelesstools = callPackage ../os-specific/linux/wireless-tools { };
|
||||||
|
|
||||||
|
wooting-udev-rules = callPackage ../os-specific/linux/wooting-udev-rules { };
|
||||||
|
|
||||||
wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { };
|
wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { };
|
||||||
|
|
||||||
wpa_supplicant_gui = libsForQt5.callPackage ../os-specific/linux/wpa_supplicant/gui.nix { };
|
wpa_supplicant_gui = libsForQt5.callPackage ../os-specific/linux/wpa_supplicant/gui.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user