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
{ lib, config, ... }: {
{ lib, ... }: {
disko.devices.disk = {
one = {
# Change this device name match your block device.
@ -8,14 +8,12 @@
type = "disk";
content = {
type = "gpt";
partitions = lib.optionalAttrs config.boot.loader.grub.enable
{
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
} // {
ESP = {
size = "500M";
type = "EF00";