Cleaning the nix store: Difference between revisions
No edit summary |
Add better Darwin command |
||
(2 intermediate revisions by 2 users not shown) | |||
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 lang=shell> | <syntaxhighlight lang="shell"> | ||
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> | ||
Line 23: | Line 25: | ||
* https://github.com/cdepillabout/nix-query-tree-viewer | * https://github.com/cdepillabout/nix-query-tree-viewer | ||
* https://github.com/craigmbooth/nix-visualize | * https://github.com/craigmbooth/nix-visualize | ||
[[Category:nix]] |