Jump to content

Cleaning the nix store: Difference between revisions

m
syntax
imported>Nix
m (some cleanup)
imported>Nix
m (syntax)
Line 7: Line 7:
Sometimes <code>result</code> files created by an ad-hoc <code>nix-build</code> bind a lot of resources, these can be found by running:
Sometimes <code>result</code> files created by an ad-hoc <code>nix-build</code> bind a lot of resources, these can be found by running:


<syntaxhighlight>
<syntaxhighlight lang=shell>
   nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/\w+-system|\{memory|/proc)"
   nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/\w+-system|\{memory|/proc)"
</syntaxhighlight>
</syntaxhighlight>
Anonymous user