Switch to systemd-boot

This commit is contained in:
Alexander Bantyev 2020-08-14 12:20:05 +03:00
parent 88848f4000
commit 60214632c1
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -96,16 +96,14 @@ with deviceSpecific; {
boot = { boot = {
loader = { loader = {
timeout = 1;
} // (if deviceSpecific.devInfo.legacy or false then { # Non-UEFI config
grub.enable = true; grub.enable = true;
grub.version = 2; grub.version = 2;
grub.useOSProber = true; grub.useOSProber = true;
timeout = 1;
} // (if deviceSpecific.devInfo.legacy or false then { # Non-UEFI config
grub.device = "/dev/sda"; grub.device = "/dev/sda";
} else { # UEFI config } else { # UEFI config
grub.efiSupport = true; systemd-boot.enable = true;
grub.device = "nodev";
grub.efiInstallAsRemovable = true; # NVRAM is unreliable
}); });
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
consoleLogLevel = 3; consoleLogLevel = 3;