From f02d818e5563f1cfa27cdc4160b9e55a7e0457d8 Mon Sep 17 00:00:00 2001 From: Kai Norman Clasen <46302524+kai-tub@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:52:49 +0200 Subject: [PATCH] Fix example in README.md (#410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix example in README.md The minimal example was missing the wrapping `disko.devices` attributes which resulted in the following error message: ``` error: attribute 'disko' missing at /nix/store/1lvj5ry4y5qyis40qcch1csf8h86z8bk-disko/share/disko/default.nix:10:49: 9| # _file = toString input; 10| imports = lib.singleton { disko.devices = cfg.disko.devices; }; | ^ 11| options = { Did you mean disk? ``` * Increase ESP size From 100M to 500M Co-authored-by: Jörg Thalheim --------- Co-authored-by: Jörg Thalheim --- README.md | 54 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 0d0e9d8..60febc6 100644 --- a/README.md +++ b/README.md @@ -59,32 +59,34 @@ A simple disko configuration may look like this: ``` { disks ? [ "/dev/vdb" ], ... }: { - disk = { -  vdb = { -   device = builtins.elemAt disks 0; -   type = "disk"; -   content = { -    type = "gpt"; -    partitions = { -     ESP = { -      size = "100M"; -      content = { -       type = "filesystem"; -       format = "vfat"; -       mountpoint = "/boot"; -      }; -     }; -     root = { -      size = "100%"; -      content = { -       type = "filesystem"; -       format = "ext4"; -       mountpoint = "/"; -      }; -     }; -    }; -   }; -  }; + disko.devices = { + disk = { +  vdb = { +   device = builtins.elemAt disks 0; +   type = "disk"; +   content = { +    type = "gpt"; +    partitions = { +     ESP = { +      size = "500M"; +      content = { +       type = "filesystem"; +       format = "vfat"; +       mountpoint = "/boot"; +      }; +     }; +     root = { +      size = "100%"; +      content = { +       type = "filesystem"; +       format = "ext4"; +       mountpoint = "/"; +      }; +     }; +    }; +   }; +  }; + }; }; } ```