gummiboot: Automatically disable GRUB
This commit is contained in:
parent
e9be441b62
commit
9bb209a3bd
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -54,6 +54,8 @@ in {
|
|||
}
|
||||
];
|
||||
|
||||
boot.loader.grub.enable = mkDefault false;
|
||||
|
||||
system = {
|
||||
build.installBootLoader = gummibootBuilder;
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ let
|
|||
];
|
||||
|
||||
${if useEFI then ''
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.gummiboot.enable = true;
|
||||
'' else ''
|
||||
|
|
Loading…
Reference in a new issue