summaryrefslogtreecommitdiffstats
path: root/example/btrfs-subvolumes.nix
blob: 83ea71e7ab16494a5e5d7091667f88b97d0d072b (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
{
  disk = {
    vdb = {
      type = "disk";
      device = "/dev/vdb";
      content = {
        type = "table";
        format = "gpt";
        partitions = [
          {
            name = "root";
            type = "partition";
            start = "0%";
            end = "100%";
            content = {
              type = "btrfs";
              mountpoint = "/";
              subvolumes = [
                "/home"
                "/test"
              ];
            };
          }
        ];
      };
    };
  };
}