diff --git a/.agenix_config.nix b/.agenix_config.nix index 6a4cd78..8fb5ec4 100644 Binary files a/.agenix_config.nix and b/.agenix_config.nix differ diff --git a/hosts/istal/services/forgejo-runners/default.nix b/hosts/istal/services/forgejo-runners/default.nix index df76598..cc4cc58 100644 --- a/hosts/istal/services/forgejo-runners/default.nix +++ b/hosts/istal/services/forgejo-runners/default.nix @@ -1,7 +1,11 @@ { config, pkgs, ... }: +let + NODE_OPTIONS = "--max_old_space_size=4096"; +in { - age.secrets.forgejo-runner-docker-token.file = ./forgejo-runner-docker-token.age; + 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; virtualisation.docker.enable = true; @@ -12,13 +16,25 @@ enable = true; name = "istal-docker"; url = "https://git.pleshevski.ru"; - labels = []; - tokenFile = config.age.secrets.forgejo-runner-docker-token.path; + labels = [ ]; + tokenFile = config.age.secrets.forgejo-runner-token-istal-docker.path; settings = { runner = { - envs = { - NODE_OPTIONS="--max_old_space_size=4096"; - }; + 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"; }; diff --git a/hosts/istal/services/forgejo-runners/forgejo-runner-token-codeberg-docker.age b/hosts/istal/services/forgejo-runners/forgejo-runner-token-codeberg-docker.age new file mode 100644 index 0000000..bd96280 Binary files /dev/null and b/hosts/istal/services/forgejo-runners/forgejo-runner-token-codeberg-docker.age differ diff --git a/hosts/istal/services/forgejo-runners/forgejo-runner-docker-token.age b/hosts/istal/services/forgejo-runners/forgejo-runner-token-istal-docker.age similarity index 100% rename from hosts/istal/services/forgejo-runners/forgejo-runner-docker-token.age rename to hosts/istal/services/forgejo-runners/forgejo-runner-token-istal-docker.age