When I run nix-store --gc
it tells me that I might save a lot of space by hard linking. When I then run nix-store --optimise
the resulting gain is much smaller than promised. Is there something I am doing wrong (some nix option or what not) or is the value printed after --gc
just a bad estimate?
I just ran the commands again to check and it promises a gain of 70GB but
nothing happens:
$ nix-store --gc
finding garbage collector roots...
deleting garbage...
deleting '/nix/store/trash'
deleting unused links...
note: currently hard linking saves 71673.04 MiB
0 store paths deleted, 0.00 MiB freed
$ nix-store --optimise
0.00 MiB freed by hard-linking 0 files
$ nix-store --gc
finding garbage collector roots...
deleting garbage...
deleting '/nix/store/trash'
deleting unused links...
note: currently hard linking saves 71673.04 MiB
0 store paths deleted, 0.00 MiB freed