Hacker News new | ask | show | jobs
by _piif 1112 days ago
The nix store in of itself should be highly compressible. Here's the output of "compsize -x /nix/store" on my BTRFS root with compress-force=zstd:6

  Processed 974464 files, 327323 regular extents (751261 refs), 598287 inline.
  Type       Perc     Disk Usage   Uncompressed Referenced  
  TOTAL       40%       11G          28G          60G       
  none       100%      2.7G         2.7G         6.2G       
  zstd        34%      8.9G          25G          54G
Nix also supports automatic deduplication using hardlinks which I have enabled in this case.
1 comments

It seems they're already using compression at least for some assets, though a bit unclear which algo it is: https://discourse.nixos.org/t/nixos-foundations-financial-su...