update gitlab runner config

This commit is contained in:
Leonardo Eugênio 2022-10-06 12:49:48 -03:00
parent 0e2e304264
commit 7c08456872
2 changed files with 19 additions and 0 deletions

View File

@ -42,6 +42,7 @@
lib = nixpkgs.lib;
common_modules = [
./system/configuration.nix
./system/gitlab-runner.nix
# nur.nixosModules.nur
inputs.hyprland.nixosModules.default
{

18
system/gitlab-runner.nix Normal file
View File

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }: {
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
virtualisation.docker.enable = true;
services.gitlab-runner = with lib; {
enable = true;
concurrent = 4;
services = {
ci_test = {
registrationConfigFile = "/srv/gitlab-runner/env/ci_test";
dockerImage = "debian";
};
thoreb_builder = {
registrationConfigFile = "/srv/gitlab-runner/env/thoreb_builder";
dockerImage = "debian";
};
};
};
}