added flipper zero udev rules

This commit is contained in:
Ryan 2024-03-18 01:00:08 -04:00
parent 3967227c74
commit 199ea5b412
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E

View file

@ -89,6 +89,15 @@
"ACTION==\"add\", SUBSYSTEM==\"backlight\", "
"RUN+=\"/run/current-system/profile/bin/chmod g+w /sys/class/backlight/%k/brightness\"")))
(define %flipper-udev-rule
(udev-rule
"42-flipperzero.rules"
(string-append "SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"0483\", ATTRS{idProduct}==\"5740\", ATTRS{manufacturer}==\"Flipper Devices Inc.\", TAG+=\"uaccess\""
"\n"
"SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"0483\", ATTRS{idProduct}==\"df11\", ATTRS{manufacturer}==\"STMicroelectronics\", TAG+=\"uaccess\""
"\n"
"SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"303a\", ATTRS{idProduct}==\"40??\", ATTRS{manufacturer}==\"Flipper Devices Inc.\", TAG+=\"uaccess\"")))
(define-public base-operating-system
(operating-system
(kernel linux)
@ -205,7 +214,8 @@
(udev-service-type config =>
(udev-configuration
(inherit config)
(rules (cons %backlight-udev-rule
(rules (cons* %backlight-udev-rule
%flipper-udev-rule
(udev-configuration-rules config)))))
(elogind-service-type config =>
(elogind-configuration