diff options
author | lassulus <lassulus@lassul.us> | 2022-08-25 21:46:17 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-08-25 23:31:05 +0200 |
commit | 81e704b638a8a7158bd9106b7fd592fb982d1864 (patch) | |
tree | c34dd63211532f349fcc5b8b2421188975a67623 /example | |
parent | dadc49133042834dada6eafc98dcb1f7f2c5e43b (diff) |
add btrfs subvolumes
Diffstat (limited to 'example')
-rw-r--r-- | example/btrfs-subvolumes.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/example/btrfs-subvolumes.nix b/example/btrfs-subvolumes.nix new file mode 100644 index 0000000..0124c86 --- /dev/null +++ b/example/btrfs-subvolumes.nix @@ -0,0 +1,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" + ]; + }; + } + ]; + }; + }; +} + |