From 111bb74de78ffdd246a7af10ab0858bc25367a84 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 16 Sep 2021 14:29:29 -0400 Subject: [PATCH] fix(grub): mkDefault for enable, add device --- profiles/boot/grub.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/profiles/boot/grub.nix b/profiles/boot/grub.nix index dae528c..8f3bb02 100644 --- a/profiles/boot/grub.nix +++ b/profiles/boot/grub.nix @@ -1,7 +1,8 @@ -{ ... }: { +{ lib, ... }: { boot.loader = { grub = { - enable = true; + enable = lib.mkDefault true; + device = "/dev/disk/by-uuid/6836-6848"; efiSupport = true; useOSProber = true; extraEntries = '' @@ -56,16 +57,16 @@ } } - menuentry 'Windows Boot Manager' --class windows --class os $menuentry_id_option ' osprober-efi-6836-6848' { - insmod part_gpt - insmod fat - if [ x$feature_platform_search_hint = xy ]; then - search --no-floppy --fs-uuid --set=root 6836-6848 - else - search --no-floppy --fs-uuid --set=root 6836-6848 - fi - chainloader /EFI/Microsoft/Boot/bootmgfw.efi - } + menuentry 'Windows Boot Manager' --class windows --class os $menuentry_id_option ' osprober-efi-6836-6848' { + insmod part_gpt + insmod fat + if [ x$feature_platform_search_hint = xy ]; then + search --no-floppy --fs-uuid --set=root 6836-6848 + else + search --no-floppy --fs-uuid --set=root 6836-6848 + fi + chainloader /EFI/Microsoft/Boot/bootmgfw.efi + } ''; }; efi = {