summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-09-04 13:12:43 +0200
committerJörg Thalheim <joerg@thalheim.io>2022-09-04 13:12:43 +0200
commit077e6d4f60a75ccb51f7e50fa715ab80493516a1 (patch)
tree8b3e494f586887e0920b5551d7cacac43af391f9
parent68f950bf2045573b03cd0e1ceebe7131ea999873 (diff)
README: fix example
-rw-r--r--README.md38
1 files changed, 22 insertions, 16 deletions
diff --git a/README.md b/README.md
index 3bfe83f..eb06ac8 100644
--- a/README.md
+++ b/README.md
@@ -19,23 +19,29 @@ let
ref = "master";
}) {};
cfg = {
- type = "devices";
- content = {
+ disk = {
sda = {
- type = "table";
- format = "msdos";
- partitions = [{
- type = "partition";
- part-type = "primary";
- start = "1M";
- end = "100%";
- bootable = true;
- content = {
- type = "filesystem";
- format = "ext4";
- mountpoint = "/";
- };
- }];
+ device = "/dev/sda";
+ type = "device";
+ content = {
+ type = "table";
+ format = "msdos";
+ partitions = [
+ {
+ name = "root";
+ type = "partition";
+ part-type = "primary";
+ start = "1M";
+ end = "100%";
+ bootable = true;
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ };
+ }
+ ];
+ };
};
};
};