Commit 13632ec71e35

Vincent Demeester <vincent@sbr.pm>
2021-08-10 17:03:15
naruhodo: extra udev rules for the moonlander
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent da4bd32
Changed files (1)
systems
systems/hosts/naruhodo.nix
@@ -122,6 +122,18 @@ in
     };
   };
 
+  services.udev.extraRules = ''
+    # Teensy rules for the Ergodox EZ
+    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"
+
+    # STM32 rules for the Moonlander and Planck EZ
+    SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \
+        MODE:="0666", \
+        SYMLINK+="stm32_dfu"
+  '';
   services.hardware.bolt.enable = true;
   core.nix = {
     # temporary