Skip to content

Commit 7311e43

Browse files
committed
better rule written by gemini-3-pro
1 parent 0f2ae04 commit 7311e43

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/services/default.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
extraRules = ''
3636
KERNEL=="ntsync", MODE="0660", TAG+="uaccess"
3737
38-
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="objdev_rules_end"
39-
ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE="0666"
40-
LABEL="objdev_rules_end"
41-
SUBSYSTEM=="input", SYMLINK=="input/by-path/*event-mouse", GROUP="users", MODE="0660"
38+
# MelGeek Hive Device
39+
# Use 'uaccess' to allow the currently logged-in user to access the device
40+
# without making it world-writable (0666).
41+
SUBSYSTEM=="usb", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="efe8", TAG+="uaccess"
42+
SUBSYSTEM=="usb_device", ATTR{idVendor}=="1f3a", ATTR{idProduct}=="efe8", TAG+="uaccess"
4243
'';
4344
};
4445
desktopManager.plasma6.enable = true;

0 commit comments

Comments
 (0)