From 0e741a6c1b3f539f83ff54e66c542c03311f58c0 Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Sun, 26 May 2024 21:43:08 -0400 Subject: [PATCH] EFI Grub? --- systems/zeus/configuration.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/systems/zeus/configuration.nix b/systems/zeus/configuration.nix index 49c64c0..1056824 100644 --- a/systems/zeus/configuration.nix +++ b/systems/zeus/configuration.nix @@ -9,13 +9,19 @@ ../../modules/smartd.nix ]; - boot.loader.grub.enable = true; - boot.loader.grub.zfsSupport = true; - boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; - boot.loader.grub.devices = - [ "/dev/sda" "/dev/sdb" "/dev/sdc" "/dev/sdd" "/dev/sde" "/dev/sdf" ]; + boot.loader.efi.canTouchEfiVariables = false; + boot.loader.grub = { + enable = true; + efiSupport = true; + device = "nodev"; + mirroredBoots = [{ + path = "/boot-spare"; + devices = + [ "/dev/disk/by-id/ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J0KJRXHJ-part1" ]; + }]; + }; - boot.supportedFilesystems = [ "vfat" ]; + boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; networking.hostName = "zeus"; # Define your hostname. networking.hostId = "9e95b576";