GNU GRUB: Difference between revisions

imported>Rti
m fix boot.loader.grub.splashImage setting name
m Missing efi attribute for boot.loader.efi.canTouchEfiVariables
Tags: Mobile edit Mobile web edit Visual edit
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{expansion}}
{{expansion}}[https://www.gnu.org/software/grub/ GNU GRUB] , also known as the Grand Unified Bootlader, is a multiboot bootloader created and maintained by GNU. It is a versatile alternative to systemd-boot that supports both UEFI and Legacy BIOS.
 
== Usage ==
To install and enable GRUB on UEFI systems, add this to your system configuration:
{{File|3=<nowiki>
boot.loader = {
  grub = {
    enable = true;
    device = "nodev"; # "nodev" is used for UEFI
    efiSupport = true;
  };
  efi.canTouchEfiVariables = true;
};
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}
Alternatively, to install and enable GRUB on Legacy BIOS systems, add this to your system configuration:
{{File|3=<nowiki>
boot.loader.grub = {
  enable = true;
  device = "/dev/sda"; #replace with the drive intended for boot
};|name=/etc/nixos/configuration.nix|lang=nix}}
For additional GRUB module configuration options, refer to [https://search.nixos.org/options?channel=25.11&query=boot.loader.grub boot.loader.grub.]


== FAQ ==
== FAQ ==
Line 12: Line 32:


* Using a MBR partition scheme
* Using a MBR partition scheme
* Adding a <tt>BIOS boot</tt> partition among your GPT partitions.
* Adding a <tt>BIOS boot</tt> partition among your GPT partitions. See https://github.com/nix-community/disko/blob/master/example/gpt-bios-compat.nix# for an example setup using [[disko]].


{{expansion|Add the steps required here. Explain as if inside the nixos installer environment.}}
{{expansion|Add the steps required here. Explain as if inside the nixos installer environment.}}
Line 30: Line 50:
<hr />
<hr />


[[Category:Applications]]
[[Category:Applications]][[Category:Booting]]