Lazy Trees Land in Determinate Nix 3.5.2: A Massive Performance Boost for Nix

2025-05-26
Lazy Trees Land in Determinate Nix 3.5.2: A Massive Performance Boost for Nix

Determinate Nix 3.5.2 has landed, bringing with it the highly anticipated lazy trees feature. This significantly improves Nix's efficiency in large repositories, especially massive monorepos, by using a virtual filesystem to optimize file copying. Tests show evaluations in Nixpkgs can be 3x faster and use 20x less disk space. Users can opt-in by enabling `lazy-trees = true` in their custom Nix configuration. While currently opt-in, the team has submitted a pull request to merge this into upstream Nix. Future performance improvements are planned, including better evaluation caching, parallel evaluation for more Nix operations, and multi-threaded unpacking of flakes.

Read more
Development Lazy Trees

FlakeHub Boosts Nix Deployments: Get Store Paths Without Evaluation

2025-02-15
FlakeHub Boosts Nix Deployments: Get Store Paths Without Evaluation

Nix's powerful build capabilities rely on evaluating store paths, which can be expensive on resource-constrained devices. FlakeHub introduces "resolved store paths," allowing users to obtain store paths without using Nix and pull directly from the FlakeHub Cache, significantly boosting deployment efficiency for NixOS, Home Manager, and nix-darwin configurations. The `fh` command-line tool simplifies resolving paths and applying configurations, offering significant advantages in cloud environments and on resource-constrained devices. This feature works with FlakeHub Cache; paid plans unlock private flakes and other advanced features.

Read more
Development Deployment Efficiency