Forgejo runner

This commit is contained in:
Aleksandr Lebedev 2025-10-07 01:24:26 +02:00
parent 858a25b692
commit 4c6f30b099
2 changed files with 34 additions and 2 deletions

View file

@ -52,8 +52,39 @@ in {
};
};
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
name = "stargate";
url = "https://git.kylekrein.com";
# gitea.com/gitea/act_runner/src/branch/main/internal/pkg/config/config.example.yaml
settings = {
runner = {
capacity = 4;
};
};
# Obtaining the path to the runner token file may differ
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
tokenFile = config.sops.secrets."services/forgejo/runner".path;
hostPackages = with pkgs; [
nix
];
labels = [
#"ubuntu-latest:docker://node:16-bullseye"
## optionally provide native execution on the host:
"native:host"
"nixos:host"
];
};
};
sops.secrets."services/forgejo/mailer" = {
mode = "400";
owner = "forgejo";
};
sops.secrets."services/forgejo/runner" = {
mode = "400";
owner = "forgejo";
};
}