From f8d43c8143ca07e8aecc499e86cba5f114beae55 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 8 May 2020 11:57:15 -0400 Subject: udev rules for ergodox --- system/modules/common.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'system/modules/common.nix') diff --git a/system/modules/common.nix b/system/modules/common.nix index fd646aa4a1..2aa487cdf1 100644 --- a/system/modules/common.nix +++ b/system/modules/common.nix @@ -116,3 +116,13 @@ # gc = { # automatic = true; # dates = " + }; + + services.udev.extraRules = '' + # UDEV rules for Teensy USB devices + ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1" + ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1" + SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666" + KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666" + ''; +} -- cgit 1.4.1