From 7c08456872466124fe11f97ed84660ed1c6b2197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 6 Oct 2022 12:49:48 -0300 Subject: [PATCH] update gitlab runner config --- flake.nix | 1 + system/gitlab-runner.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 system/gitlab-runner.nix diff --git a/flake.nix b/flake.nix index 7bca7d4..1a7a2a5 100644 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,7 @@ lib = nixpkgs.lib; common_modules = [ ./system/configuration.nix + ./system/gitlab-runner.nix # nur.nixosModules.nur inputs.hyprland.nixosModules.default { diff --git a/system/gitlab-runner.nix b/system/gitlab-runner.nix new file mode 100644 index 0000000..c8e9a31 --- /dev/null +++ b/system/gitlab-runner.nix @@ -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"; + }; + }; + }; +}