summaryrefslogtreecommitdiff
path: root/modules/xnet/disk/layouts/single.nix
blob: b779a39c4ce214f9bc28199b2f911902c93de1f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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";
            };
          };
        };
      };
    };
  };
}