system/hosts/istal/services/forgejo-runners/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2024-08-07 15:11:28 +03:00
{ config, pkgs, ... }:
2024-10-17 18:34:37 +03:00
let
NODE_OPTIONS = "--max_old_space_size=4096";
in
2024-08-07 15:11:28 +03:00
{
2024-10-17 18:34:37 +03:00
age.secrets.forgejo-runner-token-istal-docker.file = ./forgejo-runner-token-istal-docker.age;
age.secrets.forgejo-runner-token-codeberg-docker.file = ./forgejo-runner-token-codeberg-docker.age;
2024-08-07 15:11:28 +03:00
virtualisation.docker.enable = true;
services.gitea-actions-runner = {
package = pkgs.unstable.forgejo-runner;
instances = {
istal-docker = {
enable = true;
name = "istal-docker";
url = "https://git.pleshevski.ru";
2024-10-17 18:34:37 +03:00
labels = [ ];
tokenFile = config.age.secrets.forgejo-runner-token-istal-docker.path;
settings = {
runner = {
2024-10-17 18:34:37 +03:00
envs = { inherit NODE_OPTIONS; };
timeout = "1h";
};
};
};
codeberg-docker = {
enable = true;
name = "codeberg-docker";
url = "https://codeberg.org";
labels = [ ];
tokenFile = config.age.secrets.forgejo-runner-token-codeberg-docker.path;
settings = {
runner = {
envs = { inherit NODE_OPTIONS; };
timeout = "1h";
};
};
2024-08-07 15:11:28 +03:00
};
};
};
}