nixos/modules/boot/basic.nix

24 lines
434 B
Nix
Raw Normal View History

2023-06-09 21:09:52 +08:00
{ efi, timeout ? 5 }: { pkgs, ... }@inputs:
2023-06-05 21:53:13 +08:00
{
config =
{
boot =
{
loader =
{
2023-06-09 21:14:22 +08:00
timeout = timeout;
2023-06-19 11:20:20 +08:00
efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot/efi"; };
grub =
{
enable = true;
# device = "/dev/disk/by-id/nvme-KINGSTON_SNVS2000G_50026B73815C12A8";
device = "nodev";
efiSupport = true;
useOSProber = true;
};
2023-06-05 21:53:13 +08:00
};
};
hardware.enableAllFirmware = true;
};
}