services.udev.extraRules = '' # BH 2026 Badge start ATTRS{idVendor}=="1915", ATTRS{idProduct}=="521f", MODE="660", GROUP="plugdev", TAG+="uaccess" # BH 2026 Badge end # Instantiate the LSM6DSO on the MCP2221 USB-I2C bridge. ACTION=="add", SUBSYSTEM=="i2c", ATTR{name}=="MCP2221 usb-i2c bridge", ATTR{new_device}="lsm6dso 0x6a" # Grant the seat user the LSM6DSO buffered interface: the char device readable, # and the scan/buffer/trigger sysfs attrs (root:root 0644 by default) writable. SUBSYSTEM=="iio", KERNEL=="iio:device*", ATTR{name}=="lsm6dso*", \ GROUP="input", MODE="0660", \ RUN+="${pkgs.coreutils}/bin/chgrp -R input /sys%p", \ RUN+="${pkgs.coreutils}/bin/chmod -R g+rwX /sys%p"''; ''