I have an open pull request that adds two things to
--generation you can switch to a specific generation instead of a rollback. For ease of use, I also added a command to get an overview of the available generations. Its output is currently based on the boot loader menu and looks like this:
$ nixos-rebuild list-generations Generation NixOS version Kernel Build-date 290 21.03pre253635.2247d824fe0 5.9.9 Sat 2020-11-28 16:09:53 291 21.03pre253635.2247d824fe0 5.9.9 Sat 2020-11-28 16:20:51 292 21.03pre254279.6f0c00907bb 5.9.11 Sat 2020-11-28 19:07:38
What else do you want to know in an overview of the generations?
- Could some information on flakes (if available) be useful? Maybe
nixos-version --revisionoutput? Truncated?
- Is the
configuration-nameof interest? Do you use it in a way that makes sense to show it?
- What about showing it in a pager? The output might be long - on the other hand this makes it eager
I would like to hear about your ideas / what you would like to see