Description
I have the problem that I have been executing nix builds in many different directories over time and therefore there are tons of result
files and corresponding gcroots in /nix/var/nix/gcroots/auto
.
I know there is nix-du for gcroot visualization. I have never really used it, but as I understand it, you have to execute the program, pipe it into a renderer, inspect the graph and then execute command manually to free the space. Sounds still quite inconvenient to me.
I have the feeling, a UI like the one of nix-tree would be perfectly suited. It's already possible to inspect individual gcroots via nix-tree.
I can, for example execute nix-tree /nix/var/nix/gcroots/auto/0k6bnn1z76mfddabj8b1pmfkvygms6m3
which will show me the tree and closure size of that single gcroot.
It would be nice if I could zoom out one more step and see all my gcroots listed (preferably sorted by closure size).
Then I can conveniently scroll through them and hit the delete button on the ones which I'd like to delete.
I'm aware of the fact, that finding out how much space a gcroot can actually free is not trivial, since some of it's dependencies could also be blocked by another root.
But I'd guess that the total closure size would already give a good enough estimate.