Storage optimization: Difference between revisions
imported>Mth m Mth moved page Garbage Collection to Storage optimization |
imported>Mth m bash syntax highlighting makes root prompts look like comments |
||
Line 49: | Line 49: | ||
Not all of the derivations are garbage in this case, but quite a few are: | Not all of the derivations are garbage in this case, but quite a few are: | ||
< | <pre> | ||
# rm /root/forkstat/result /home/ec2-user/result /home/danbst/stack/new/website/server/result | |||
# nix-collect-garbage -d | # nix-collect-garbage -d | ||
... | ... | ||
690 store paths deleted, 1817.99 MiB freed</ | 690 store paths deleted, 1817.99 MiB freed | ||
</pre> | |||
Especially look for system derivations. Those are created in many cases, for example, when running <code>nixos-rebuild build-vm</code> | Especially look for system derivations. Those are created in many cases, for example, when running <code>nixos-rebuild build-vm</code> | ||