diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-09-04 12:16:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 12:16:07 +0100 |
commit | c0623a47d8a3a2ee9e9973bc84532b1b66dc9387 (patch) | |
tree | 8b3e494f586887e0920b5551d7cacac43af391f9 | |
parent | fbc08430d28a65eb3e783feb892659d32abd4551 (diff) | |
parent | 077e6d4f60a75ccb51f7e50fa715ab80493516a1 (diff) |
Merge pull request #34 from nix-community/types
README: fix example
-rw-r--r-- | README.md | 38 |
1 files changed, 22 insertions, 16 deletions
@@ -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 = "/"; + }; + } + ]; + }; }; }; }; |