mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
types: add btrfs_subvol type
This commit is contained in:
1 parent
1ecb428c86
commit
77c8f6460f
2 files changed
+132
-30
No files matched your search
@@ -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" = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user