NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.06k forks source link

feature request: a way to put a build in a GRUB submenu without making it the default #28262

Open magnetophon opened 7 years ago

magnetophon commented 7 years ago

Issue description

When you nixos-rebuild switch (and presumably also when you boot) with a -p flag, to put the build in a GRUB submenu, it also gets added to the GRUB main menu, so IOW it becomes the default boot. It would be nice if there was a way to put the build just in the submenu.
Arguably, the -p flag should always but the build just in the submenu, and never make it the default.

My use case is as follows: I have 2 configs for my laptop: one for maximum battery life, and one for real-time audio, with a separate kernel. I have the battery config as my default, and I build the audio one with: nixos-rebuild switch -p rt -I nixos-config=/my-rt-conf.

How do other musnix users handle this? @henrytill @tg-x @thomas-morgan @pngwjpgh @kmicu @cillianderoiste @cleverca22 @michalrus

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
michalrus commented 4 years ago

still important to me

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

michalrus commented 3 years ago

still important to me…

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

samueldr commented 1 year ago

I believe this is exactly what specialisations are meant to be used for.

If it's not working out for your needs, care to elaborate?