From 60214632c1c8e70e792c49130a0283bc5a8dd346 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Fri, 14 Aug 2020 12:20:05 +0300 Subject: [PATCH] Switch to systemd-boot --- modules/hardware.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/hardware.nix b/modules/hardware.nix index f9da867..671e25b 100644 --- a/modules/hardware.nix +++ b/modules/hardware.nix @@ -96,16 +96,14 @@ with deviceSpecific; { boot = { loader = { + timeout = 1; + } // (if deviceSpecific.devInfo.legacy or false then { # Non-UEFI config grub.enable = true; grub.version = 2; grub.useOSProber = true; - timeout = 1; - } // (if deviceSpecific.devInfo.legacy or false then { # Non-UEFI config grub.device = "/dev/sda"; } else { # UEFI config - grub.efiSupport = true; - grub.device = "nodev"; - grub.efiInstallAsRemovable = true; # NVRAM is unreliable + systemd-boot.enable = true; }); kernelPackages = pkgs.linuxPackages_latest; consoleLogLevel = 3;