EFI Grub?

This commit is contained in:
Chris Dombroski 2024-05-27 13:00:39 -04:00
parent 804d1155de
commit 40677574ab
2 changed files with 33 additions and 9 deletions

View file

@ -9,13 +9,30 @@
../../modules/smartd.nix ../../modules/smartd.nix
]; ];
boot.loader.grub.enable = true; boot = {
boot.loader.grub.zfsSupport = true; loader = {
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; grub = {
boot.loader.grub.devices = enable = true;
[ "/dev/sda" "/dev/sdb" "/dev/sdc" "/dev/sdd" "/dev/sde" "/dev/sdf" ]; efiSupport = true;
efiInstallAsRemovable = true;
boot.supportedFilesystems = [ "vfat" ]; mirroredBoots = [
{
devices = [ "nodev" ];
path = "/efi";
}
{
devices = [ "nodev" ];
path = "/efi1";
}
];
};
efi = {
canTouchEfiVariables = false;
efiSysMountPoint = "/efi";
};
};
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
};
networking.hostName = "zeus"; # Define your hostname. networking.hostName = "zeus"; # Define your hostname.
networking.hostId = "9e95b576"; networking.hostId = "9e95b576";

View file

@ -42,9 +42,16 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/boot-spare" = { fileSystems."/efi" = {
device = "/dev/disk/by-id/ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J0KJRXHJ-part1"; device = "/dev/disk/by-uuid/6ED6-2ED0";
fsType = "vfat"; fsType = "vfat";
options = [ "nofail" ];
};
fileSystems."/efi1" = {
device = "/dev/disk/by-uuid/6A4C-BAFE";
fsType = "vfat";
options = [ "nofail" ];
}; };
swapDevices = [ swapDevices = [