NixOS module for a drone ci runner in docker #147

Merged
hensoko merged 3 commits from feature/add-module-to-run-kvm-capable-drone-runner-in-docker into main 2023-01-30 00:09:23 +00:00
Showing only changes of commit 5f6988291c - Show all commits

View file

@ -43,7 +43,7 @@ let
in
{
options.pub-solar.docker-ci-runner = {
enable = lib.mkEnableOption "Enables a systemd service that runs drone-ci-runner";
enable = lib.mkEnableOption "Enables a docker container running a drone exec runner as unprivileged user.";
enableKvm = lib.mkOption {
description = ''
@ -88,7 +88,7 @@ in
autoStart = true;
entrypoint = "bash";
cmd = [ "/bootstrap.sh" ];
volumes = [
"${cfg.runnerVarsFile}:/run/vars"
"${cfg.nixCacheLocation}:/nix"
@ -96,7 +96,7 @@ in
];
environment = cfg.runnerEnvironment;
extraOptions = lib.mkIf cfg.enableKvm [ "--device=/dev/kvm" ];
};
};