1
0
Fork 0
selfhostblocks/mycompany-agents/network.nix

19 lines
541 B
Nix
Raw Normal View History

2023-03-16 07:37:03 +01:00
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;
};
}