summaryrefslogtreecommitdiffstats
path: root/example/negative-size.nix
blob: e41bae6b211017cb1b09aef1061f34eb5ea4d995 (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
{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
  disk = {
    disk0 = {
      device = builtins.elemAt disks 0;
      type = "disk";
      content = {
        type = "table";
        format = "gpt";
        partitions = [
          {
            name = "nix";
            type = "partition";
            part-type = "primary";
            start = "0%";
            end = "-10MiB";
            bootable = true;
            content = {
              type = "filesystem";
              format = "ext4";
              mountpoint = "/";
            };
          }
        ];
      };
    };
  };
}