tee hee next error

This commit is contained in:
alisceon 2025-09-29 16:12:43 +02:00
parent 14f5aee907
commit df8ab8e97d

View file

@ -134,33 +134,33 @@
# GitLab Runner # GitLab Runner
services.gitlab-runner = { services.gitlab-runner = {
enable = true; enable = true;
# service runs as this user so jobs share the same rootless Podman context
user = "gitlab-runner"; user = "gitlab-runner";
concurrent = 4; services = {
runners = [ ci-nspawn-rootless-podman = {
{ # Prefer auth tokens (GitLab 18 deprecates registration tokens)
name = "ci-nspawn-rootless-podman"; # Put CI_SERVER_URL and CI_SERVER_TOKEN into this file (ENV format).
url = "https://gitlab.com/"; # your GitLab URL authenticationTokenConfigFile = "/var/lib/gitlab-runner/token-env";
tokenFile = "/var/lib/gitlab-runner/registration-token"; # create this once # …or, if you still use a registration token:
executor = "docker"; # GitLab's Docker executor (backed by Podman) # registrationConfigFile = "/var/lib/gitlab-runner/registration.env";
executor = "docker"; # use Docker executor against Podman
dockerImage = "alpine:3"; dockerImage = "alpine:3";
dockerPrivileged = true; # often needed for DinD-like jobs; set false if you can dockerPrivileged = true; # tighten later if you can
# Point the Docker executor at the *user* Podman socket:
environment = [
# IMPORTANT: set to the gitlab-runner user's runtime dir
# You can find UID with: id -u gitlab-runner (in container)
"DOCKER_HOST=unix:///run/user/$(id -u gitlab-runner)/podman/podman.sock"
];
# Optional volumes for caching, etc.
dockerVolumes = [ dockerVolumes = [
"/var/lib/gitlab-runner/cache:/cache" "/var/lib/gitlab-runner/cache:/cache"
]; ];
# Helpful default pull behavior
dockerPullPolicy = "if-not-present"; # If your nixpkgs exposes it (most do), point Docker executor at Podman:
} dockerHost = "unix:///run/user/$(id -u gitlab-runner)/podman/podman.sock";
]; # If that option isnt available in your channel, instead supply a full
}; # config.toml via `services.gitlab-runner.configFile` where you set:
# [runners.docker]
# host = "unix:///run/user/UID/podman/podman.sock"
}; # end services.ci-nspawn-rootless-podman
}; # end services.gitlab-runner
}; # end containers.ci.config
# Make sure systemd + cgroups are fully available inside the container # Make sure systemd + cgroups are fully available inside the container
systemd.oomd.enable = false; # avoids noise in small containers systemd.oomd.enable = false; # avoids noise in small containers