add forgejo-runner on forgejo vm

This commit is contained in:
Vinzenz Schroeter 2025-02-01 16:06:36 +01:00
parent 28f2315ede
commit 5ed5698587
2 changed files with 32 additions and 5 deletions

View file

@ -0,0 +1,28 @@
{ pkgs, ... }:
{
config = {
environment.systemPackages = with pkgs; [
forgejo-runner
];
# https://wiki.nixos.org/wiki/Forgejo
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
name = "cccb";
url = "https://git.berlin.ccc.de";
# Obtaining the path to the runner token file may differ
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
tokenFile = "/etc/forgejo-runner/registration_token";
labels = [
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:rust-latest"
];
settings = {
container.network = "bridge";
};
};
};
};
}