step by step

This commit is contained in:
alisceon 2025-09-29 16:37:42 +02:00
parent 98f149ed67
commit f3f7320b52

View file

@ -86,9 +86,6 @@
# Rootless Podman # Rootless Podman
virtualisation.podman = { virtualisation.podman = {
enable = true; enable = true;
# Provide Docker-compatible CLI & /var/run/docker.sock shim (for rootful).
# We'll still point the runner directly at the rootless socket (recommended).
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true; defaultNetwork.settings.dns_enabled = true;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -117,7 +114,7 @@
ExecStart = "${pkgs.podman}/bin/podman system service --time=0"; ExecStart = "${pkgs.podman}/bin/podman system service --time=0";
Restart = "always"; Restart = "always";
}; };
WantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
}; };
# Make the user session available at boot (so the user service can run) # Make the user session available at boot (so the user service can run)
@ -151,11 +148,9 @@
dockerVolumes = [ dockerVolumes = [
"/var/lib/gitlab-runner/cache:/cache" "/var/lib/gitlab-runner/cache:/cache"
]; ];
environmentVariables = [
# If that option isnt available in your channel, instead supply a full "DOCKER_HOST=unix:///run/user/2100/podman/podman.sock"
# 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.ci-nspawn-rootless-podman
}; # end services.gitlab-runner }; # end services.gitlab-runner
}; # end containers.ci.config }; # end containers.ci.config