types: add btrfs_subvol type

This commit is contained in:
Lily Foster authored and lassulus committed 2022-12-23 20:27:47 +01:00
1 parent 1ecb428c86
commit 77c8f6460f
2 files changed
+132 -30

No files matched your search

+15 -5
View File
@@ -27,11 +27,21 @@
end = "100%";
content = {
type = "btrfs";
mountpoint = "/";
subvolumes = [
"/home"
"/test"
];
extraArgs = "-f"; # Override existing partition
subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = {
mountpoint = "/";
};
# Mountpoints inferred from subvolume name
"/home" = {
mountOptions = ["compress=zstd"];
};
"/nix" = {
mountOptions = ["compress=zstd" "noatime"];
};
"/test" = {};
};
};
}
];