types: add btrfs_subvol type

This commit is contained in:
Lily Foster 2022-12-17 12:09:10 -05:00 committed by lassulus
parent 1ecb428c86
commit 77c8f6460f
2 changed files with 132 additions and 30 deletions

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" = {};
};
};
}
];