forked from CCCHH/nix-infra
June
85c059c75c
Configure it to host a forgejo-actions-runner capable of handling CI workloads running on Docker.
30 lines
900 B
Nix
30 lines
900 B
Nix
# Sources for this configuration:
|
|
# - https://forgejo.org/docs/latest/admin/actions/
|
|
# - https://forgejo.org/docs/latest/user/actions/
|
|
# - https://docs.gitea.com/next/usage/actions/act-runner
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.gitea-actions-runner = {
|
|
package = pkgs.forgejo-actions-runner;
|
|
instances.ccchh-forgejo-global-docker = {
|
|
enable = true;
|
|
name = "Global Docker Forgejo Actions Runner";
|
|
url = "https://git.hamburg.ccc.de/";
|
|
tokenFile = "/secrets/registration-token.secret";
|
|
labels = [ "docker:docker://node:current-bookworm" ];
|
|
};
|
|
};
|
|
|
|
deployment.keys = {
|
|
"registration-token.secret" = {
|
|
keyCommand = [ "pass" "noc/services/forgejo-actions-runner/registration_token" ];
|
|
destDir = "/secrets";
|
|
user = "gitea-runner";
|
|
group = "gitea-runner";
|
|
permissions = "0640";
|
|
uploadAt = "pre-activation";
|
|
};
|
|
};
|
|
}
|