Host and secure your Nix binary cache
Cloudsmith is a managed Nix binary cache that speaks the native Nix protocol, so your nix copy and nix build commands point straight at it. Keys rotate instantly, and NixOS channel proxying keeps builds running through a public outage.
Host your Nix binary cache, managed and secured by Cloudsmith.
- Use Nix along with 30+ other formats
- Host container images and ML models alongside your Nix binary cache
- Bring raw files and NixOS release channels into one centrally managed repository
How we support Nix
Why teams choose Cloudsmith for Nix
Signs you're ready to switch to Cloudsmith for Nix
Get started with Nix on Cloudsmith
Frequently asked questions
Yes. Cloudsmith hosts a public or private Nix binary cache using the standard Nix HTTP binary cache protocol, so your existing nix build and nix copy workflows point straight at Cloudsmith with no new upload tooling to learn.
Packages are published using the native nix copy command, for example nix copy --to your repository URL. Uploading Nix packages through the Cloudsmith CLI or web app is not currently supported.
Configure a netrc file with your Cloudsmith entitlement token as the password, then reference it in your Nix configuration, or embed the token directly in the substituter URL.
Every repository has its own ED25519 signing key. Cloudsmith signs the narinfo for each package on every read rather than once at upload, so key rotation takes effect immediately across every package.
Yes. Configure a NixOS release channel as an upstream and Cloudsmith fetches and caches store paths on request, then serves them from the cache on subsequent builds.
Yes. Add your repository's ED25519 public key to trusted-public-keys in your Nix configuration before running nix build or nix copy, or Nix will refuse to substitute from the cache even though the request succeeds.
Yes. Cloudsmith replaces a self-hosted binary cache such as nix-serve or a self-managed S3 bucket, so there is no cache infrastructure for your team to patch or scale.
Yes. Nix sits in the same multi-format repository as your containers, language packages and ML models, so you get one governed store instead of a separate tool per format.
The public cache works well for many teams, but its availability and bandwidth aren't guaranteed, which is a risk many compliance-driven teams can't accept. Cloudsmith gives you a managed alternative that speaks the same Nix binary cache protocol, so nix copy and nix build point at it exactly as they would any other substituter.