From ae6ea8fe043c59323f2215f07b0efae755061226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 21 Apr 2024 18:13:48 +0100 Subject: [PATCH] CI runner capacity of 2 simultaneous jobs --- nixos/boxes/cupsnet/gitea-runner.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/nixos/boxes/cupsnet/gitea-runner.nix b/nixos/boxes/cupsnet/gitea-runner.nix index af993e29..0d15022d 100644 --- a/nixos/boxes/cupsnet/gitea-runner.nix +++ b/nixos/boxes/cupsnet/gitea-runner.nix @@ -1,11 +1,15 @@ -{ config, pkgs, inputs, lib, system, ... }: -let +{ + config, + pkgs, + inputs, + lib, + system, + ... +}: let unstable = inputs.nixpkgs-nixos-unstable; - package = unstable.legacyPackages."${system}".gitea-actions-runner; + package = unstable.legacyPackages."${system}".forgejo-runner; in { - - disabledModules = - [ "services/continuous-integration/gitea-actions-runner.nix" ]; + disabledModules = ["services/continuous-integration/gitea-actions-runner.nix"]; imports = [ "${unstable}/nixos/modules/services/continuous-integration/gitea-actions-runner.nix" ]; @@ -17,7 +21,7 @@ in { virtualisation.docker = { enable = true; autoPrune.enable = true; - daemon.settings = { }; + daemon.settings = {}; }; services.gitea-actions-runner = { @@ -27,6 +31,9 @@ in { url = "https://git.cyplo.dev"; tokenFile = config.sops.secrets."gitea-runner-token".path; name = "cupsnet local"; + settings = { + runner.capacity = 2; + }; hostPackages = with pkgs; [ bash coreutils