forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple system profiles
‘nixos-rebuild’ now accepts an argument ‘--profile-name’ (or ‘-p’), denoting the name of a system profile to use. The default is ‘system’, which maps to /nix/var/nix/profiles/system. Any other value maps to /nix/var/nix/profiles/system-profiles/<name>. The GRUB menu generator makes all system profiles available as submenus. For instance, doing $ nixos-rebuild boot -p test will cause a menu named ‘NixOS - Profile 'test'’ to be added to the GRUB boot menu, leaving the default system profile unaffected. This is only supported for GRUB 2.
- Loading branch information
Showing
2 changed files
with
55 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters