disko: fix infinite recursion error

This commit is contained in:
Jörg Thalheim 2023-08-15 10:27:14 +02:00
parent d3ca5ce58b
commit dc7a8e45a0

View File

@ -1,5 +1,5 @@
# Example to create a bios compatible gpt partition # Example to create a bios compatible gpt partition
{ lib, config, ... }: { { lib, ... }: {
disko.devices.disk = { disko.devices.disk = {
one = { one = {
# Change this device name match your block device. # Change this device name match your block device.
@ -8,14 +8,12 @@
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";
partitions = lib.optionalAttrs config.boot.loader.grub.enable partitions = {
{
boot = { boot = {
name = "boot"; name = "boot";
size = "1M"; size = "1M";
type = "EF02"; type = "EF02";
}; };
} // {
ESP = { ESP = {
size = "500M"; size = "500M";
type = "EF00"; type = "EF00";