From dc7a8e45a0597968b7fbe862e9d1520f4edd9111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 15 Aug 2023 10:27:14 +0200 Subject: [PATCH] disko: fix infinite recursion error --- disk-configs/simple-efi.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/disk-configs/simple-efi.nix b/disk-configs/simple-efi.nix index d890f7e..e1928dc 100644 --- a/disk-configs/simple-efi.nix +++ b/disk-configs/simple-efi.nix @@ -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 - { - boot = { - name = "boot"; - size = "1M"; - type = "EF02"; - }; - } // { + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; ESP = { size = "500M"; type = "EF00";