Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show disk usage of every derivation #6

Open
doronbehar opened this issue Apr 7, 2020 · 2 comments
Open

Show disk usage of every derivation #6

doronbehar opened this issue Apr 7, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@doronbehar
Copy link

I'd like to use nix-query-tree-viewer to see what packages take up most of the disk space in my system. If I run:

nix-query-tree-viewer /nix/store/i3qjymii00vxc124xal792lvcnvddcvb-system-path/

That's nice - I can see all of my derivations that are directly referenced by my configuration.nix. In the table showing up, it could be awesome to see a disk usage column showing the total disk usage of all of the derivations referenced per derivation.

Perhaps for this to be a bit fast, cache needs to be utilized for every store path and the total disk usage should be computed from according to the derivation path.

@cdepillabout
Copy link
Owner

cdepillabout commented Apr 8, 2020

This would be really neat!

Right now, nix-query-tree-viewer just shows the output of nix-store --query --tree, but adding additional information (like disk usage) would be great.

I'd be happy to accept a PR adding this functionality. It would ideally be behind a GUI toggle switch so you could make it not show disk usage.

@cdepillabout cdepillabout added enhancement New feature or request help wanted Extra attention is needed labels Apr 8, 2020
@cdepillabout
Copy link
Owner

nix-tree does something like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants