gummiboot: Automatically disable GRUB

This commit is contained in:
Eelco Dolstra 2014-04-30 11:41:39 +02:00
parent e9be441b62
commit 9bb209a3bd
4 changed files with 3 additions and 4 deletions

View file

@ -318,8 +318,7 @@ changes:
</listitem>
<listitem>
<para>You must set <option>boot.loader.gummiboot.enable</option> to
<literal>true</literal>, and <option>boot.loader.grub.enable</option>
to <literal>false</literal>. <command>nixos-generate-config</command>
<literal>true</literal>. <command>nixos-generate-config</command>
should do this automatically for new configurations when booted in
UEFI mode.</para>
</listitem>

View file

@ -402,7 +402,6 @@ if ($showHardwareConfig) {
if (-e "/sys/firmware/efi/efivars") {
$bootLoaderConfig = <<EOF;
# Use the gummiboot efi boot loader.
boot.loader.grub.enable = false;
boot.loader.gummiboot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
EOF

View file

@ -54,6 +54,8 @@ in {
}
];
boot.loader.grub.enable = mkDefault false;
system = {
build.installBootLoader = gummibootBuilder;

View file

@ -45,7 +45,6 @@ let
];
${if useEFI then ''
boot.loader.grub.enable = false;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.gummiboot.enable = true;
'' else ''