You can have nix-ci automatically pull from, and push to, Cachix.
You can have nix-ci automatically pull from, and push to, Cachix.
To activate cachix integration, configure the
name
and
public-key
in your flake's
nix-ci.cachix
configuration.
nix-ci = { cachix = { name = "foo-bar"; public-key = "foo-bar.cachix.org-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; }; };
You will also need to create a cachix auth token and configure it as a secret for your repository on nix-ci with the name:
CACHIX_AUTH_TOKEN
# Cachix 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>