Fixed udev rules

This commit is contained in:
alejandro-angulo 2024-10-06 20:37:09 -07:00
parent e1c6396153
commit c382929d9a
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -63,12 +63,18 @@
system.monitoring.enable = true;
};
services.udev.extraRules = ''
# CMSIS-DAP for microbit
ACTION!="add|change", GOTO="microbit_rules_end"
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", TAG+="uaccess"
LABEL="microbit_rules_end"
'';
services.udev.packages = [
(pkgs.writeTextFile {
name = "microbit-udev-rules";
text = ''
# CMSIS-DAP for microbit
ACTION!="add|change", GOTO="microbit_rules_end"
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", TAG+="uaccess"
LABEL="microbit_rules_end"
'';
destination = "/etc/udev/rules.d/69-microbit.rules";
})
];
services.gitea-actions-runner.instances = {
gospel = {