AI Briefing
KO

Cutting Nix Storage Costs by 90% with Tvix Store

·2025.03.06 13:46

Key point

Replit adopted Tvix Store to reduce Nix storage capacity from 6Tb to 1.2Tb, cutting costs by 90%.

1 / 2

Details

Replit has been using Nix to provide users with a consistent development environment, but as NixOS releases accumulated, storage size grew to as much as 20Tb, causing cost issues. In particular, there was a constraint that existing storage paths could not be deleted in order to maintain backward compatibility.

To solve this, Replit introduced Tvix Store. Built on tvix-castore, this system uses a content-addressed approach, and through Content-defined chunking, duplicate chunks of files are stored only once. This dramatically reduces duplicate data across multiple package versions.

The implementation works as follows:

  • Expose the Nix local store via a FUSE filesystem.
  • Store a compressed tvix-store on the persistent disk, and mount it in the container so that it looks identical to the existing Nix store.

As a result, Replit successfully compressed a 6Tb Nix storage path down to 1.2Tb, cutting overall storage costs by 90%.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.