summaryrefslogtreecommitdiff
path: root/modules/pc/udev/z010_mchp_tools.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-22 00:56:50 -0700
committerFuwn <[email protected]>2024-10-22 00:56:50 -0700
commit14497d63067e76233f5c536f134e5822469b704f (patch)
tree5d92d34cf9f9703842750af54fc794620013e9f7 /modules/pc/udev/z010_mchp_tools.nix
parentlock: tsutsumi (diff)
downloadnixos-config-14497d63067e76233f5c536f134e5822469b704f.tar.xz
nixos-config-14497d63067e76233f5c536f134e5822469b704f.zip
pc: transfer udev rules from arch
Diffstat (limited to 'modules/pc/udev/z010_mchp_tools.nix')
-rw-r--r--modules/pc/udev/z010_mchp_tools.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/pc/udev/z010_mchp_tools.nix b/modules/pc/udev/z010_mchp_tools.nix
new file mode 100644
index 0000000..e235209
--- /dev/null
+++ b/modules/pc/udev/z010_mchp_tools.nix
@@ -0,0 +1,28 @@
+{
+ services.udev.extraRules = ''
+ # 2018.09.11 Remove calls to mchplinusbdevice.
+ # 2017.09.25 Added check for Microchip product IDs.
+ # 2017.03,03 Added check for Atmel tools.
+ # 2012.01.23 Changed SYSFS reference(s) to ATTR.
+ # 2011.12.15 Note: Reboot works on all systems to have rules file recognized.
+ # 2010.01.26 Add reference to "usb" for Ubuntu.
+ # 2010.01.22 Attempt to further simplify rules files requirements.
+ # 2009.08.18 Rules file simplified.
+ # 2009.07.15 Rules file created.
+
+ ACTION!="add", GOTO="rules_end"
+ SUBSYSTEM=="usb_device", GOTO="check_add"
+ SUBSYSTEM!="usb", GOTO="rules_end"
+
+ LABEL="check_add"
+
+ ATTR{idVendor}=="04d8", ATTR{idProduct}=="8???", MODE="666"
+ ATTR{idVendor}=="04d8", ATTR{idProduct}=="9???", MODE="666"
+ ATTR{idVendor}=="04d8", ATTR{idProduct}=="a0??", MODE="666"
+ ATTR{idVendor}=="04d8", ATTR{idProduct}=="00e0", MODE="666"
+ ATTR{idVendor}=="04d8", ATTR{idProduct}=="00e1", MODE="666"
+ ATTR{idVendor}=="03eb", ATTR{idProduct}!="6124", MODE="666"
+
+ LABEL="rules_end"
+ '';
+}