summaryrefslogtreecommitdiffstats
path: root/example/btrfs-subvolumes.nix
blob: 0124c860c7af360d62100d382d63bec6cefe63b8 (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
{
  type = "devices";
  content = {
    vdb = {
      type = "table";
      format = "gpt";
      partitions = [
        {
          type = "partition";
          part-type = "primary";
          start = "0%";
          end = "100%";
          content = {
            type = "btrfs";
            mountpoint = "/";
            subvolumes = [
              "/home"
              "/test"
            ];
          };
        }
      ];
    };
  };
}