| 1 | { |
| 2 | disk = { |
| 3 | main = { |
| 4 | type = "disk"; |
| 5 | device = "/dev/nvme0n1"; |
| 6 | content = { |
| 7 | type = "gpt"; |
| 8 | partitions = { |
| 9 | boot = { |
| 10 | size = "1G"; |
| 11 | type = "EF00"; |
| 12 | content = { |
| 13 | type = "filesystem"; |
| 14 | format = "vfat"; |
| 15 | mountpoint = "/boot"; |
| 16 | mountOptions = [ "umask=0077" ]; |
| 17 | }; |
| 18 | }; |
| 19 | root = { |
| 20 | size = "100%"; |
| 21 | content = { |
| 22 | type = "zfs"; |
| 23 | pool = "zroot"; |
| 24 | }; |
| 25 | }; |
| 26 | }; |
| 27 | }; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | zpool = { |
| 32 | zroot = { |
| 33 | type = "zpool"; |
| 34 | options = { |
| 35 | # smartctl --all /dev/nvme0n1 |
| 36 | # Logical block size: 512 bytes |
| 37 | ashift = "9"; |
| 38 | }; |
| 39 | rootFsOptions = { |
| 40 | acltype = "posixacl"; |
| 41 | compression = "zstd"; |
| 42 | mountpoint = "none"; |
| 43 | xattr = "sa"; |
| 44 | }; |
| 45 | datasets = { |
| 46 | "root" = { |
| 47 | type = "zfs_fs"; |
| 48 | mountpoint = "/"; |
| 49 | }; |
| 50 | "nix" = { |
| 51 | type = "zfs_fs"; |
| 52 | mountpoint = "/nix"; |
| 53 | }; |
| 54 | "reserved" = { |
| 55 | type = "zfs_fs"; |
| 56 | options = { |
| 57 | canmount = "off"; |
| 58 | refreservation = "1G"; |
| 59 | }; |
| 60 | }; |
| 61 | }; |
| 62 | }; |
| 63 | }; |
| 64 | } |