actions-runner: enable kvm support
All checks were successful
build / test (pull_request) Successful in 10s
checks / test (pull_request) Successful in 20s

This commit is contained in:
Jörg Thalheim 2023-10-03 18:29:14 +02:00
parent 75f6fc709b
commit c740b866c7

View File

@ -199,7 +199,7 @@ in
tokenFile = "/var/lib/gitea-registration/token";
labels = [ "nix:docker://gitea-runner-nix" ];
settings = {
container.options = "-e NIX_BUILD_SHELL=/bin/bash -e PAGER=cat -e PATH=/bin -e SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt -v /nix:/nix -v ${storeDeps}/bin:/bin -v ${storeDeps}/etc/ssl:/etc/ssl --user nixuser --device=/dev/kvm";
container.options = "-e NIX_BUILD_SHELL=/bin/bash -e PAGER=cat -e PATH=/bin -e SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt --device /dev/kvm -v /nix:/nix -v ${storeDeps}/bin:/bin -v ${storeDeps}/etc/ssl:/etc/ssl --user nixuser --device=/dev/kvm";
# the default network that also respects our dns server settings
container.network = "podman";
container.valid_volumes = [