zfs: make topology a mode type

This commit is contained in:
dylan madisetti committed 2024-08-26 12:27:04 -04:00
1 parent 540cd416f6
commit cc2e247193
3 files changed
+83 -85

No files matched your search

+15 -16
View File
@@ -78,27 +78,26 @@
zpool = {
zroot = {
type = "zpool";
mode = "prescribed";
mode = {
topology = {
vdev = [
{
mode = "mirror";
members = [ "x" "y" ];
}
];
special = {
members = [ "z" ];
};
cache = "cache";
};
};
rootFsOptions = {
compression = "zstd";
"com.sun:auto-snapshot" = "false";
};
mountpoint = "/";
topology = {
type = "zfs_topology";
vdev = [
{
mode = "mirror";
members = [ "x" "y" ];
}
];
special = {
members = [ "z" ];
};
cache = "cache";
};
datasets = {
# See examples/zfs.nix for more comprehensive usage.
zfs_fs = {