diff options
Diffstat (limited to 'modules/xnet/disk/layouts/single.nix')
| -rw-r--r-- | modules/xnet/disk/layouts/single.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/xnet/disk/layouts/single.nix b/modules/xnet/disk/layouts/single.nix new file mode 100644 index 0000000..b779a39 --- /dev/null +++ b/modules/xnet/disk/layouts/single.nix @@ -0,0 +1,29 @@ +device: { + disk = { + "${device}" = { + type = "disk"; + device = "/dev/${device}"; + content = { + type = "gpt"; + partitions = { + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + ZFS = { + size = "100%"; + content = { + type = "zfs"; + pool = "zroot"; + }; + }; + }; + }; + }; + }; +} |
