GNU GRUB: Difference between revisions
m Add link to disko setup for a bios partition on GPT. |
Added Usage section, and a definition of what GNU GRUB is. |
||
| 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 non UEFI alternative to systemd-boot. | ||
== 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; | |||
}; | |||
</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 == | ||