18 lines
541 B
Nix
18 lines
541 B
Nix
let
|
|
hercules-ci-agent =
|
|
builtins.fetchTarball "https://github.com/hercules-ci/hercules-ci-agent/archive/stable.tar.gz";
|
|
in
|
|
{
|
|
network.description = "Hercules CI agents";
|
|
|
|
agent = {
|
|
imports = [
|
|
(hercules-ci-agent + "/module.nix")
|
|
];
|
|
|
|
services.hercules-ci-agent.enable = true;
|
|
services.hercules-ci-agent.concurrentTasks = 4; # Number of jobs to run
|
|
deployment.keys."cluster-join-token.key".keyFile = ./cluster-join-token.key;
|
|
deployment.keys."binary-caches.json".keyFile = ./binary-caches.json;
|
|
};
|
|
}
|