gummiboot: Automatically disable GRUB
This commit is contained in:
parent
e9be441b62
commit
9bb209a3bd
@ -318,8 +318,7 @@ changes:
|
|||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>You must set <option>boot.loader.gummiboot.enable</option> to
|
<para>You must set <option>boot.loader.gummiboot.enable</option> to
|
||||||
<literal>true</literal>, and <option>boot.loader.grub.enable</option>
|
<literal>true</literal>. <command>nixos-generate-config</command>
|
||||||
to <literal>false</literal>. <command>nixos-generate-config</command>
|
|
||||||
should do this automatically for new configurations when booted in
|
should do this automatically for new configurations when booted in
|
||||||
UEFI mode.</para>
|
UEFI mode.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -402,7 +402,6 @@ if ($showHardwareConfig) {
|
|||||||
if (-e "/sys/firmware/efi/efivars") {
|
if (-e "/sys/firmware/efi/efivars") {
|
||||||
$bootLoaderConfig = <<EOF;
|
$bootLoaderConfig = <<EOF;
|
||||||
# Use the gummiboot efi boot loader.
|
# Use the gummiboot efi boot loader.
|
||||||
boot.loader.grub.enable = false;
|
|
||||||
boot.loader.gummiboot.enable = true;
|
boot.loader.gummiboot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
EOF
|
EOF
|
||||||
|
@ -54,6 +54,8 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.loader.grub.enable = mkDefault false;
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
build.installBootLoader = gummibootBuilder;
|
build.installBootLoader = gummibootBuilder;
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ let
|
|||||||
];
|
];
|
||||||
|
|
||||||
${if useEFI then ''
|
${if useEFI then ''
|
||||||
boot.loader.grub.enable = false;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.gummiboot.enable = true;
|
boot.loader.gummiboot.enable = true;
|
||||||
'' else ''
|
'' else ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user