hercules-ci / support

User feedback, questions and our public roadmap. help@hercules-ci.com
5 stars 1 forks source link

Where should agent.toml go in NixOS? #45

Closed srid closed 4 years ago

srid commented 4 years ago

I wanted to setup the CI to use my cachix cache, but it is quite difficult to find the steps to do this. It seems I need to create a binary-caches.json file, but where do I specify it? agent.toml per the docs, but where should this agent.toml go?

This is how I've setup the agent:

  services.hercules-ci-agent = {
    enable = true;
    concurrentTasks = 4; # Number of jobs to run
    patchNix = true;
  };
srid commented 4 years ago

Note I originally tried binaryCachesFile by looking at the source - but it seems that key doesn't work anymore.

srid commented 4 years ago

Ah, okay. So I have to put this file manually under /var/lib/hercules-ci-agent. Still, I think the docs could have been improved in guide/tutorial side ("How to enable pushing to cachix cache", etc.).

roberth commented 4 years ago

Hi srid, thanks so much for reporting this issue. I'm glad you were able to resolve it, and I have made some improvements to the docs and test case.