summaryrefslogtreecommitdiff
path: root/host/software/desktop/teensy.nix
blob: 461ad27143bd6b146fb0da134c5ce278c333da41 (plain)
1
2
3
4
5
6
7
8
9
10
11
{ pkgs, ... }:

{
 services.udev.extraRules = ''
   # UDEV rules for Teensy USB
   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"
 '';
}