mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
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:
parent
19b6232466
commit
f02d818e55
54
README.md
54
README.md
@ -59,32 +59,34 @@ A simple disko configuration may look like this:
|
|||||||
|
|
||||||
```
|
```
|
||||||
{ disks ? [ "/dev/vdb" ], ... }: {
|
{ disks ? [ "/dev/vdb" ], ... }: {
|
||||||
disk = {
|
disko.devices = {
|
||||||
vdb = {
|
disk = {
|
||||||
device = builtins.elemAt disks 0;
|
vdb = {
|
||||||
type = "disk";
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
type = "disk";
|
||||||
type = "gpt";
|
content = {
|
||||||
partitions = {
|
type = "gpt";
|
||||||
ESP = {
|
partitions = {
|
||||||
size = "100M";
|
ESP = {
|
||||||
content = {
|
size = "500M";
|
||||||
type = "filesystem";
|
content = {
|
||||||
format = "vfat";
|
type = "filesystem";
|
||||||
mountpoint = "/boot";
|
format = "vfat";
|
||||||
};
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
root = {
|
};
|
||||||
size = "100%";
|
root = {
|
||||||
content = {
|
size = "100%";
|
||||||
type = "filesystem";
|
content = {
|
||||||
format = "ext4";
|
type = "filesystem";
|
||||||
mountpoint = "/";
|
format = "ext4";
|
||||||
};
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user