EFI Grub?
This commit is contained in:
parent
804d1155de
commit
40677574ab
2 changed files with 33 additions and 9 deletions
|
@ -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";
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue