-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
implement nixos-rebuild list-generations
#121
Comments
Some time ago I planned a |
What else would you like to display? I was going to pick apart the list-generations subcommand, so we can definitely add more data |
I don't know, that's why I didn't write the command in the end 🤣 Though perhaps closure size (nix path-info -Sh) and nixpkgs commit |
commenting to refloat this |
I was working on this :( |
:) |
i have some suggestions on what all can be shown upon
|
Nix itself (as per my knowledge) does not report either of those stats. I can calculate the size of the Nix store, but there are already better tools (du, dust, etc.) which I am not sure if we should bother wrapping. |
I've started actually implementing this, as Current output:
Not final. |
I've recently noticed the list-generations option for
nixos-rebuild
that outputs a neat table of available generations. Maybe we could implement anh os generations
command as a replacement, that returns similar table of data (+ any other data that we might want) as a formatted table or JSON for parsing purposes.For reference, here's the example output:
The text was updated successfully, but these errors were encountered: