1
0
Fork 0
selfhostblocks/mycompany-agents/network.nix
2023-03-15 23:37:03 -07:00

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;
};
}