Storage optimization: Difference between revisions

imported>Mth
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:


<syntaxhighlight lang="bash"># rm /root/forkstat/result /home/ec2-user/result /home/danbst/stack/new/website/server/result
<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</syntaxhighlight>
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>