2024-03-09 23:13:13 +01:00
|
|
|
{config, ...}: let
|
|
|
|
registrationConfigFile = config.age.secrets."services/gitlab/runner-registration".path;
|
|
|
|
in {
|
|
|
|
services.gitlab-runner = {
|
|
|
|
enable = true;
|
|
|
|
services = {
|
|
|
|
docker = {
|
|
|
|
inherit registrationConfigFile;
|
|
|
|
dockerImage = "docker:stable";
|
|
|
|
dockerVolumes = ["/var/run/docker.sock:/var/run/docker.sock"];
|
2024-05-16 23:31:40 +02:00
|
|
|
registrationFlags = [
|
|
|
|
"--docker-network-mode host"
|
|
|
|
];
|
2024-03-09 23:13:13 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
}
|