dotfiles/modules/hardware/boot.nix

36 lines
801 B
Nix
Raw Normal View History

{ config, ... }: {
2022-04-29 02:25:05 +00:00
boot.loader = {
grub = {
enable = true;
2022-04-29 02:25:05 +00:00
# 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";
2022-06-14 10:38:34 +00:00
# Display menu indefinitely if holding shift key
extraConfig = ''
if keystatus --shift ; then
set timeout=-1
else
set timeout=0
fi
'';
};
2022-06-14 10:38:34 +00:00
# Always display menu indefinitely; default is 5 seconds
# timeout = null;
# Allows GRUB to interact with the UEFI/BIOS I guess
efi.canTouchEfiVariables = true;
};
2022-04-29 02:25:05 +00:00
}