From a1be738883854a9219b3ceb19437eccd8b17ec90 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 20 Nov 2023 20:53:39 +0000 Subject: [PATCH] feat: some slight improvements to control storage useage for teh runner --- applications/gitlab_runner.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/applications/gitlab_runner.nix b/applications/gitlab_runner.nix index b0535e0..c6dda6b 100644 --- a/applications/gitlab_runner.nix +++ b/applications/gitlab_runner.nix @@ -30,7 +30,7 @@ in { docker = { image = mkOption { - default = "alpine:latest"; + default = "alpine:3.18.4"; type = types.str; }; @@ -54,6 +54,7 @@ in { age.secrets.runner_02_general.file = ../secrets/gitlab/runners/runner02.age; boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1 + virtualisation.docker.enable = true; # taken from https://github.com/NixOS/nixpkgs/issues/245365#issuecomment-1663854128 virtualisation.docker.listenOptions = ["/run/docker.sock" "127.0.0.1:2375"]; @@ -61,10 +62,10 @@ in { services.gitlab-runner = { enable = true; - clear-docker-cache = { - enable = true; - dates = cfg.runner.docker.cleanup_dates; - }; + # clear-docker-cache = { + # enable = true; + # dates = cfg.runner.docker.cleanup_dates; + # }; services = { # might make a function later to have multiple runners, might never need it though