update gitlab runner config
This commit is contained in:
parent
0e2e304264
commit
7c08456872
|
@ -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
18
system/gitlab-runner.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue