udev: fix rules for my monsgeek m1
This commit is contained in:
parent
eacc272b69
commit
91098d29eb
14
nixos.nix
14
nixos.nix
|
@ -250,10 +250,16 @@ in
|
|||
users = [ "wizardlink" ];
|
||||
};
|
||||
|
||||
# Vial udev rule for Monsgeek M1
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="fffe", ATTRS{idProduct}=="0005", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
||||
'';
|
||||
services.udev = {
|
||||
# Vial udev rule for Monsgeek M1
|
||||
extraRules = ''
|
||||
# Monsgeek M1
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="fffe", ATTRS{idProduct}=="0005", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
||||
'';
|
||||
|
||||
# WB32 DFU rules - needed for flashing
|
||||
packages = [ (pkgs.callPackage ./services/udev/wb32dfu.nix { }) ];
|
||||
};
|
||||
|
||||
# enable a better driver for wireless xbox controllers.
|
||||
hardware.xpadneo.enable = true;
|
||||
|
|
19
services/udev/wb32dfu.nix
Normal file
19
services/udev/wb32dfu.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "wb32dfu-udev-rules";
|
||||
version = "0-unstable-2024-09-15";
|
||||
src = ./.;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D wb32dfu.rules $out/lib/udev/rules.d/50-wb32dfu.rules
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
2
services/udev/wb32dfu.rules
Normal file
2
services/udev/wb32dfu.rules
Normal file
|
@ -0,0 +1,2 @@
|
|||
# WB32 DFU
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="342d", ATTRS{idProduct}=="dfa0", TAG+="uaccess"
|
Loading…
Reference in a new issue