2021-07-26 02:55:35 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
capacity = 10;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.drone-exec-runner.nix01 = {
|
|
|
|
enable = true;
|
2021-07-26 03:14:10 +02:00
|
|
|
restartIfChanged = false; # Prevent from killing itself as it is a core machine.
|
2021-07-26 02:55:35 +02:00
|
|
|
env = [
|
|
|
|
"DRONE_RUNNER_CAPACITY=${toString capacity}"
|
|
|
|
"CLIENT_DRONE_RPC_HOST=127.0.0.1:${toString config.services.drone-server.port}"
|
2021-07-26 03:34:45 +02:00
|
|
|
"DRONE_RUNNER_LABELS=nix:true" # nix-ready machine.
|
2021-07-26 02:55:35 +02:00
|
|
|
];
|
|
|
|
envFile = config.age.secrets.droneKeyFile.path;
|
|
|
|
};
|
2022-03-05 23:15:38 +01:00
|
|
|
|
2022-06-26 23:48:43 +02:00
|
|
|
systemd.services."drone-exec-runner-nix01".after = [ "gitea.service" ];
|
2021-07-26 02:55:35 +02:00
|
|
|
}
|