My NixOS configuration (mirror)
at main 21 lines 450 B view raw
1{ 2 config, 3 lib, 4 ... 5}: { 6 options.modules.services.boot.enable = lib.mkEnableOption "boot (grub) support"; 7 8 config = lib.mkIf config.modules.services.boot.enable { 9 boot.loader = { 10 systemd-boot.enable = false; 11 efi.efiSysMountPoint = "/boot"; 12 efi.canTouchEfiVariables = true; 13 grub = { 14 enable = true; 15 efiSupport = true; 16 device = "nodev"; 17 configurationLimit = 8; 18 }; 19 }; 20 }; 21}