boot.loader.grub.extraEntries
NixOS option
Any additional entries you want added to the GRUB boot menu.
type: strings concatenated with "\n"Default
""
Example
declared in: nixos/modules/system/boot/loader/grub/grub.nixView source on NixOS/nixpkgs →''
# GRUB 2 example
menuentry "Windows 7" {
chainloader (hd0,4)+1
}
# GRUB 2 with UEFI example, chainloading another distro
menuentry "Fedora" {
set root=(hd1,1)
chainloader /efi/fedora/grubx64.efi
}
''