fix: disk size outside

This commit is contained in:
Gabriel Nützi
2025-11-21 17:49:18 +01:00
parent 20bbb9af3b
commit 38434ea85b
4 changed files with 6 additions and 12 deletions
+5 -1
View File
@@ -62,6 +62,10 @@ in
})
];
virtualisation = {
diskSize = 50000;
};
# Define the Gitlab Runner.
services.gitlab-runner = {
enable = true;
@@ -163,7 +167,7 @@ in
test_connection()
test_register_runner(name="shell", tokenFile="${runnerConfigs.shell.tokenFile}")
test_register_runner(name="podman", tokenFile="${runnerConfigs.podman.tokenFile}")
restart_gitlab_runner_service()
restart_gitlab_runner_service(runnerConfigs)
test_runner_registered(runnerConfigs["shell"])
test_runner_registered(runnerConfigs["podman"])
'';
@@ -2,9 +2,3 @@
These are some files which are copied to the image in the runner needed for
`buildah` (`podman`).
## Reference
```shell
just update-root-files
```
@@ -1,9 +1,5 @@
{ lib, ... }:
{
virtualisation = {
diskSize = 50000;
};
virtualisation.docker = {
enable = lib.mkForce false;
};
+1 -1
View File
@@ -116,7 +116,7 @@ def test_register_runner(name: str, tokenFile: str):
def restart_gitlab_runner_service(runnerConfigs):
print("==> Restart Gitlab Runner")
if any([r.name == "podman" for r in runnerConfigs]):
if any([n == "podman" for n in runnerConfigs.keys()]):
vms.gitlab_runner.wait_for_unit("podman-nix-daemon-container.service")
vms.gitlab_runner.wait_for_unit("podman-podman-daemon-container.service")