mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2024-11-07 07:36:09 -05:00
added flipper zero udev rules
This commit is contained in:
parent
3967227c74
commit
199ea5b412
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue