NixOS module for a drone ci runner in docker #147
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue