diff --git a/modules/hardware/boot.nix b/modules/hardware/boot.nix index 8d39a17..03b2e03 100644 --- a/modules/hardware/boot.nix +++ b/modules/hardware/boot.nix @@ -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; + }; }