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
];
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.supportedFilesystems = [ "vfat" ];
boot = {
loader = {
grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
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.hostId = "9e95b576";

View file

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