nixos: updated the gitlab runner to fix an issue it had with docker

This commit is contained in:
silver 2023-08-07 02:07:35 +01:00
parent 2c5c3094f8
commit d4ce54e1eb
3 changed files with 10 additions and 5 deletions

View file

@ -52,6 +52,9 @@
boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1
# taken from https://github.com/NixOS/nixpkgs/issues/245365#issuecomment-1663854128
virtualisation.docker.listenOptions = [ "/run/docker.sock" "127.0.0.1:2375" ];
services.gitlab-runner = {
enable = true;
@ -65,6 +68,7 @@
runner_nix = {
cloneUrl = cfg.runner.gitlab;
description = cfg.runner.description;
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
registrationConfigFile = config.age.secrets.runner_nix.path;
dockerImage = cfg.runner.docker.image;
@ -103,6 +107,7 @@
runner_general = {
cloneUrl = cfg.runner.gitlab;
description = cfg.runner.description;
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
registrationConfigFile = config.age.secrets.runner_general.path;
dockerImage = cfg.runner.docker.image;
};