grub: enable efi support by default
This commit is contained in:
parent
cb103c7772
commit
c5e5a7edc7
|
@ -6,33 +6,37 @@
|
||||||
example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345";
|
example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config.disko.devices = {
|
config = {
|
||||||
disk = {
|
boot.loader.grub.efiSupport = lib.mkDefault true;
|
||||||
main = {
|
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
|
||||||
type = "disk";
|
disko.devices = {
|
||||||
device = config.clan.diskLayouts.singleDiskExt4.device;
|
disk = {
|
||||||
content = {
|
main = {
|
||||||
type = "gpt";
|
type = "disk";
|
||||||
partitions = {
|
device = config.clan.diskLayouts.singleDiskExt4.device;
|
||||||
boot = {
|
content = {
|
||||||
size = "1M";
|
type = "gpt";
|
||||||
type = "EF02"; # for grub MBR
|
partitions = {
|
||||||
};
|
boot = {
|
||||||
ESP = {
|
size = "1M";
|
||||||
size = "512M";
|
type = "EF02"; # for grub MBR
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
};
|
||||||
};
|
ESP = {
|
||||||
root = {
|
size = "512M";
|
||||||
size = "100%";
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "vfat";
|
||||||
mountpoint = "/";
|
mountpoint = "/boot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
root = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user