You can have NixCI automatically pull from, and push to, Cachix.
You can have NixCI automatically pull from, and push to, Cachix.
To activate cachix integration, add a
cachix
section to
your NixCI configuration
with the
name
and
public-key
of your cache.
{
cachix = {
name = "foo-bar";
public-key = "foo-bar.cachix.org-1:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
}
You will also need to create a cachix auth token and configure it as a secret for your repository on NixCI with the names:
CACHIX_AUTH_TOKEN
or
CACHIX_SIGNING_KEY
cachix: # optional
# Cachix configuration
# In order to push to the cache as well, the repository needs to have a CACHIX_AUTH_TOKEN or CACHIX_SIGNING_KEY secret.
# CachixConfiguration
name: # required
# cache name
<string>
public-key: # required
# cache public key (for pulling)
<string>