summary refs log tree commit diff
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2021-05-28 16:38:53 -0700
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2021-08-18 19:25:42 -0700
commiteab36fabf6168f8fdbb2b835ce3ab689b9902ab1 (patch)
tree59f9a4072b06dbea9d8a55e074a455c235d40549
parent1f9e0192603f335e2bf29e7bb2a67acd5c4cb3c9 (diff)
downloadnixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.tar
nixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.tar.gz
nixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.tar.bz2
nixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.tar.lz
nixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.tar.xz
nixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.tar.zst
nixpkgs-eab36fabf6168f8fdbb2b835ce3ab689b9902ab1.zip
config.hardware.onlykey: update the udev rules for onlykey
The udev rules were updated upstream without an explanation as you can
see in [this comment][commit].

[commit]: https://github.com/trustcrypto/trustcrypto.github.io/commit/0bcf928adaea559e75efa02ebd1040f0a15f611d
-rw-r--r--nixos/modules/hardware/onlykey/onlykey.udev14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/modules/hardware/onlykey/onlykey.udev b/nixos/modules/hardware/onlykey/onlykey.udev
index 6583530e568..61e3ee4e882 100644
--- a/nixos/modules/hardware/onlykey/onlykey.udev
+++ b/nixos/modules/hardware/onlykey/onlykey.udev
@@ -1,3 +1,17 @@
+# UDEV Rules for OnlyKey, https://docs.crp.to/linux.html
+ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1"
+ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1"
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
+KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
+
+
+# The udev rules were updated upstream without an explanation as you can
+# see in [this comment][commit]. Assuming that hey have changed the
+# idVendor/idProduct, I've kept the old values.
+# TODO: Contact them upstream.
+#
+# [commit]: https://github.com/trustcrypto/trustcrypto.github.io/commit/0bcf928adaea559e75efa02ebd1040f0a15f611d
+#
 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]?", GROUP+="plugdev"