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

49 lines
1.3 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-11-29 20:09:18 +03:00
labels = [
"docker:docker://node:20-bullseye"
"ubuntu-22.04:docker://node:20-bullseye"
];
2024-10-17 18:34:37 +03:00
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
};
};
};
}