Cachix
Updated: December 15, 2024
Cachix is a binary cache for Nix packages, allowing users to share and distribute pre-built binaries.
This documentation provides an overview of how to set up and use Cachix in a NixOS environment.
Table of Contents
They allow FOSS upto 5GB of data to be stored. Check for details
Installation
# Apparently just installs as a package
pkgs.cachix
Configuration
Login to Cachix account and create a binary cache.
Create auth token (personal is account | per-cache is cache specific)
# set the auth token with either:
cachix authtoken XXX
export CACHIX_AUTH_TOKEN=XXX
Usage
After building a package we can push the binary to Cachix
Remote Cache
Substitute Cache
Other caching tools
- ssh-serve