switch to grub for dual-boot convenience

This commit is contained in:
Noah Masur 2022-06-12 16:43:07 -04:00
parent 9a21db7165
commit 2539151df9

View File

@ -1,8 +1,23 @@
{ ... }: {
{ config, ... }: {
# Use the systemd-boot EFI boot loader.
# These came with the system and I don't know if they're required.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader = {
grub = {
enable = true;
# Not sure what this does, but it involves the UEFI/BIOS
efiSupport = true;
# Check for other OSes and make them available
useOSProber = true;
# Install GRUB onto the boot disk
# device = config.fileSystems."/boot".device;
# Don't install GRUB, required for UEFI?
device = "nodev";
};
# Allows GRUB to interact with the UEFI/BIOS I guess
efi.canTouchEfiVariables = true;
};
}