infra/config/services/gitlab/runner.nix

20 lines
489 B
Nix
Raw Normal View History

{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"
];
};
};
};
virtualisation.docker.enable = true;
}