hainich: add gitlab-runner
This commit is contained in:
parent
b979d4436c
commit
a9ffb27289
3 changed files with 20 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
# ./k8s.nix
|
# ./k8s.nix
|
||||||
./services/docker.nix
|
./services/docker.nix
|
||||||
./services/rocket.nix
|
./services/rocket.nix
|
||||||
|
./services/gitlab-runner.nix
|
||||||
];
|
];
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/gitlab-runner" =
|
||||||
|
{ device = "dpool/gitlab-runner";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/data" =
|
fileSystems."/data" =
|
||||||
{ device = "dpool/data";
|
{ device = "dpool/data";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
|
|
14
configuration/hosts/hainich/services/gitlab-runner.nix
Normal file
14
configuration/hosts/hainich/services/gitlab-runner.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue