hainich: add gitlab-runner

keep-around/260108a586419c56af181aa471a3ac11a1e9f072
hexchen 2020-11-29 03:39:23 +00:00
parent b979d4436c
commit a9ffb27289
3 changed files with 20 additions and 0 deletions

View File

@ -15,6 +15,7 @@
# ./k8s.nix
./services/docker.nix
./services/rocket.nix
./services/gitlab-runner.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;

View File

@ -25,6 +25,11 @@
fsType = "zfs";
};
fileSystems."/var/lib/gitlab-runner" =
{ device = "dpool/gitlab-runner";
fsType = "zfs";
};
fileSystems."/data" =
{ device = "dpool/data";
fsType = "zfs";

View File

@ -0,0 +1,14 @@
{config, pkgs, lib, ...}:
{
services.gitlab-runner = {
enable = true;
concurrent = 4;
services.infra4future = {
buildsDir = "/var/lib/gitlab-runner/builds";
dockerImage = "nixos/nix";
executor = "docker";
registrationConfigFile = "/run/gitlab-runner.env";
};
};
}