nixos-config/system/gitlab-runner.nix

22 lines
619 B
Nix
Raw Normal View History

2022-10-06 12:49:48 -03:00
{ config, pkgs, lib, ... }: {
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
virtualisation.docker.enable = true;
services.gitlab-runner = with lib; {
enable = true;
2022-10-19 12:35:35 -03:00
concurrent = 4;
2022-10-06 12:49:48 -03:00
services = {
ci_test = {
registrationConfigFile = "/srv/gitlab-runner/env/ci_test";
dockerImage = "debian";
dockerPrivileged = true;
2022-10-06 12:49:48 -03:00
};
thoreb_builder = {
registrationConfigFile = "/srv/gitlab-runner/env/thoreb_builder";
dockerImage = "debian";
dockerPrivileged = true;
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
}