Open NotAShelf opened 4 months ago
Some time ago I planned a nh os info
subcommand, perhaps we could show more useful info
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
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: