* Option boot.extraGrubEntries to add arbitrary text to Grub's menu.lst.

svn path=/nixos/trunk/; revision=8883
This commit is contained in:
Eelco Dolstra 2007-06-15 11:40:57 +00:00
parent f3f16dc169
commit c819d76ec7
3 changed files with 22 additions and 0 deletions

View file

@ -65,6 +65,14 @@ if test -n "$tmp"; then
fi
# Additional entries specified verbatim by the configuration.
cat >> $tmp <<EOF
@extraGrubEntries@
EOF
# Add all generations of the system profile to the menu, in reverse
# (most recent to least recent) order.
for generation in $(

View file

@ -189,6 +189,19 @@
}
{
name = ["boot" "extraGrubEntries"];
default = "";
example = "
title Windows
chainloader (hd0,1)+1
";
description = "
Any additional entries you want added to the Grub boot menu.
";
}
{
name = ["networking" "hostName"];
default = "nixos";

View file

@ -288,6 +288,7 @@ rec {
inherit (pkgs) bash;
path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
copyKernels = config.get ["boot" "copyKernels"];
extraGrubEntries = config.get ["boot" "extraGrubEntries"];
};