From d7061cf25ffe3f6bebfc427a67e48365ea10a357 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 10 Oct 2021 21:15:58 +0200 Subject: Add optional udev rules for Teensy USB boards Enables flashing as non-root --- host/software/desktop/teensy.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 host/software/desktop/teensy.nix (limited to 'host/software/desktop') diff --git a/host/software/desktop/teensy.nix b/host/software/desktop/teensy.nix new file mode 100644 index 0000000..461ad27 --- /dev/null +++ b/host/software/desktop/teensy.nix @@ -0,0 +1,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" + ''; +} -- cgit v1.2.3