summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2023-12-31 09:12:40 +0100
committerRory& <root@rory.gay>2023-12-31 09:12:40 +0100
commit1c55762e546d9eefaa883b2214f631e1fdf4ebd0 (patch)
tree6a0e99979162182950276d2b148c147c05c39e78 /host
parentPatch no longer needed on i686, update RoryNix to 23.11 (diff)
downloadRory-Open-Architecture-1c55762e546d9eefaa883b2214f631e1fdf4ebd0.tar.xz
Dont set dconf for Rory if dconf isnt enabled
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;