2024-10-01 13:07:09 +02:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.gitea-actions-runner = {
|
|
|
|
package = pkgs.forgejo-actions-runner;
|
|
|
|
|
|
|
|
instances.default = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
name = config.networking.fqdn;
|
|
|
|
url = "https://git.fediversity.eu";
|
2024-12-11 13:32:41 +01:00
|
|
|
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
2024-10-01 13:07:09 +02:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
log.level = "info";
|
|
|
|
runner = {
|
|
|
|
file = ".runner";
|
|
|
|
capacity = 24;
|
|
|
|
timeout = "3h";
|
|
|
|
insecure = false;
|
|
|
|
fetch_timeout = "5s";
|
|
|
|
fetch_interval = "2s";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
## This runner supports Docker (with a default Ubuntu image) and native
|
|
|
|
## modes. In native mode, it contains a few default packages.
|
2024-11-18 12:09:30 +01:00
|
|
|
labels = [
|
|
|
|
"docker:docker://node:16-bullseye"
|
|
|
|
"native:host"
|
|
|
|
];
|
|
|
|
hostPackages = with pkgs; [
|
|
|
|
bash
|
|
|
|
git
|
|
|
|
nix
|
|
|
|
nodejs
|
|
|
|
];
|
2024-10-01 13:07:09 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
## For the Docker mode of the runner.
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
}
|