Cleaning the nix store: Difference between revisions

Jalil (talk | contribs)
m Remove unnecessary leading white space from command
Dwt (talk | contribs)
Add better Darwin command
 
Line 9: Line 9:
<syntaxhighlight lang="shell">
<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)"
# Darwin
nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/\w+-system|\{libproc)"
</syntaxhighlight>
</syntaxhighlight>