nixos-config/system/rainbow-gitlab-runner.nix

29 lines
1,001 B
Nix
Raw Normal View History

2023-11-29 17:42:47 -03:00
{ config, pkgs, lib, ... }:
let
inherit (pkgs.callPackage ./gitlab-runner.nix { }) mkNixRunner;
in
{
2022-10-06 12:49:48 -03:00
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
virtualisation.docker.enable = true;
2022-12-02 14:40:11 -03:00
services.gitlab-runner = {
2022-10-06 12:49:48 -03:00
enable = true;
2023-01-12 15:10:10 -03:00
settings.concurrent = 1;
2022-10-06 12:49:48 -03:00
services = {
2022-12-23 11:22:58 -03:00
# ci_test = {
# registrationConfigFile = "/srv/gitlab-runner/env/ci_test";
# dockerImage = "debian";
# dockerPrivileged = true;
# };
2022-10-06 12:49:48 -03:00
thoreb_builder = {
2023-01-12 15:10:10 -03:00
registrationConfigFile = config.age.secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.path;
2022-10-06 12:49:48 -03:00
dockerImage = "debian";
dockerPrivileged = true;
2022-10-06 12:49:48 -03:00
};
2023-11-29 17:42:47 -03:00
thoreb-telemetria-nix = mkNixRunner config.age.secrets.gitlab-runner-thoreb-telemetria-registrationConfigFile.path;
2023-12-07 13:58:34 -03:00
thoreb-itinerario-nix = mkNixRunner config.age.secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.path;
2022-10-06 12:49:48 -03:00
};
};
2022-11-05 09:48:46 -03:00
systemd.services.gitlab-runner.serviceConfig.Nice = 10;
2022-10-06 12:49:48 -03:00
}