Can I tag boot menu entries somehow?

Instead of having dozens of nondescript bootloader entries is there a way I could tag them somehow?
Something like sudo nixos-rebuild switch --tag "new hostname" so that I know which entry is what.

It’s not on the command line, but you can add system.nixos.tags = [ "new-hostname" ]; to your configuration before rebuilding.

1 Like

Awesome, while looking up system.nixos.tags I came across system.nixos.label which states:

If you ever wanted to influence the labels in your GRUB menu, this is the option for you.
(blabla)
Can be overridden by setting NIXOS_LABEL

Worked like a charm! For anyone else finding this later, here is one way to do it:
sudo NIXOS_LABEL="vlc_added" nixos-rebuild switch
(It doesn’t like space in the label)