From deb0cd1488b8d72ad1395b25aa4dbbdf721274d9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 13 Jan 2026 16:09:22 +0100 Subject: [PATCH] Allow USB access to TC1 from Gitlab Runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné --- m/module/tc1-board.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/m/module/tc1-board.nix b/m/module/tc1-board.nix index fd1f8c72..a513860f 100644 --- a/m/module/tc1-board.nix +++ b/m/module/tc1-board.nix @@ -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" + ]; + }; + }; }