mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
zfs: make topology a mode type
This commit is contained in:
3 files changed
+83
-85
No files matched your search
+15
-16
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user