Grub menu configurationName and persisting

Hey folks,

I have a pretty stable gnome setup now and was about to experiment with other window managers (like wayland+hyprland). One of the ideas I have is to build gnome with:

  boot.loader.grub.configurationName = "Gnome on stable";

to have a fallback, and then switch nix-pkgs to unstable to install hyprland.

Question: Is there a methodology to say “keep this nix configuration” and don’t delete it? I could then add that to boot.loader.grub.extraEntries.

Or do I just keep 2x configurations and use rebuild switch each time?

You probably want specialisations:

1 Like