diff options
-rw-r--r-- | host/hephaestus.nix | 2 | ||||
-rw-r--r-- | host/software/desktop/teensy.nix | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/host/hephaestus.nix b/host/hephaestus.nix index 2f73818..18bc004 100644 --- a/host/hephaestus.nix +++ b/host/hephaestus.nix @@ -4,7 +4,7 @@ imports = [ ./hardware/hephaestus.nix ./software/desktop - ./software/server/build.nix + ./software/desktop/teensy.nix ]; boot = { 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" + ''; +} |