GRUB2 on UEFI
This article was originally published at https://gist.github.com/joepie91/ce9267788fdcb37f5941be5a04fcdd0f.
These instructions are most likely outdated. They are kept here for posterity.
This works fine. You need your boot
section configured like this:
{ # ... boot = { loader = { gummiboot.enable = false; efi = { canTouchEfiVariables = true; }; grub = { enable = true; device = "nodev"; version = 2; efiSupport = true; }; }; }; # ... }