summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/Rory-desktop/configuration.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix
index 5491ae0..c0cd5f1 100644
--- a/host/Rory-desktop/configuration.nix
+++ b/host/Rory-desktop/configuration.nix
@@ -26,6 +26,19 @@
     #readOnlyNixStore = false;
   };
 
+  services.udev.extraRules = ''
+    #SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", GROUP="users"
+    # SDP protocol
+    KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", MODE="0666"
+    ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666"
+    ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0666"
+    # Flashloader
+    KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", MODE="0666"
+    # Controller
+    KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", MODE="0666"
+    SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", MODE="0660", TAG+="uaccess"
+  '';
+
   networking = {
     hostName = "Rory-desktop";
     networkmanager.enable = true;