Fix example in README.md (#410)

* 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 <Mic92@users.noreply.github.com>

---------

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Kai Norman ClasenandJörg Thalheim authored and GitHub committed 2023-10-02 17:52:49 +01:00
1 parent 19b6232466
commit f02d818e55
1 file changed
+3 -1
+3 -1
View File
@@ -59,6 +59,7 @@ A simple disko configuration may look like this:
``` ```
{ disks ? [ "/dev/vdb" ], ... }: { { disks ? [ "/dev/vdb" ], ... }: {
disko.devices = {
disk = { disk = {
 vdb = {  vdb = {
  device = builtins.elemAt disks 0;   device = builtins.elemAt disks 0;
@@ -67,7 +68,7 @@ A simple disko configuration may look like this:
   type = "gpt";    type = "gpt";
   partitions = {    partitions = {
    ESP = {     ESP = {
     size = "100M";      size = "500M";
     content = {      content = {
      type = "filesystem";       type = "filesystem";
      format = "vfat";       format = "vfat";
@@ -86,6 +87,7 @@ A simple disko configuration may look like this:
  };   };
 };  };
}; };
};
} }
``` ```