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;
};

View file

@ -252,16 +252,16 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1691252436,
"narHash": "sha256-SKKPKYOnFcwqECehxoFBMLv29CZXC5qCDuETSuXd82g=",
"lastModified": 1691276849,
"narHash": "sha256-RNnrzxhW38SOFIF6TY/WaX7VB3PCkYFEeRE5YZU+wHw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9607b9149c9d81fdf3dc4f3bcc278da146ffbd77",
"rev": "5faab29808a2d72f4ee0c44c8e850e4e6ada972f",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-23.05",
"ref": "nixos-unstable",
"type": "indirect"
}
},

View file

@ -4,7 +4,7 @@
inputs = {
# gonna start off with a fairly modern base
nixpkgs.url = "nixpkgs/nixos-23.05";
nixpkgs.url = "nixpkgs/nixos-unstable";
# utility stuff
flake-utils.url = "github:numtide/flake-utils";