From 0ee00fdb91218d4fe86b434b42c66f40c110b224 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 --- 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 27bc73b0..eb40a8ca 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" + ]; + }; + }; }