forked from Fediversity/Fediversity
37 lines
792 B
Nix
37 lines
792 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
virtualisation.docker.enable = true;
|
|
|
|
services.gitea-actions-runner = {
|
|
package = pkgs.forgejo-actions-runner;
|
|
instances.default = {
|
|
enable = true;
|
|
name = "vm02179.procolix.com";
|
|
url = "https://git.fediversity.eu";
|
|
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
|
labels = [
|
|
"docker:docker://node:16-bullseye"
|
|
"native:host"
|
|
];
|
|
hostPackages = with pkgs; [
|
|
bash
|
|
git
|
|
nix
|
|
nodejs
|
|
];
|
|
settings = {
|
|
log.level = "info";
|
|
runner = {
|
|
file = ".runner";
|
|
capacity = 8;
|
|
timeout = "3h";
|
|
insecure = false;
|
|
fetch_timeout = "5s";
|
|
fetch_interval = "2s";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|