Allow USB access to TC1 from Gitlab Runner

Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
2026-01-13 16:09:22 +01:00
parent cd1f502ecc
commit deb0cd1488

View File

@@ -12,4 +12,16 @@
'';
destination = "/etc/udev/rules.d/60-ftdi-tc1.rules";
});
# Allow access to USB for docker in GitLab runner
services.gitlab-runner = {
services.gitlab-bsc-docker = {
registrationFlags = [
# We need raw access to the USB port to reboot the board
"--docker-devices /dev/bus/usb/003/003"
# And TTY access for the serial port
"--docker-devices /dev/ttyUSB2"
];
};
};
}