made zfs mode settable
This commit is contained in:
parent
99ea355472
commit
795b9b010f
1 changed files with 6 additions and 1 deletions
|
@ -50,6 +50,11 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
pool = {
|
pool = {
|
||||||
|
mode = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "raidz2";
|
||||||
|
description = "what level of redundancy should this pool have";
|
||||||
|
};
|
||||||
# list of drives in pool that will have a boot partition put onto them
|
# list of drives in pool that will have a boot partition put onto them
|
||||||
bootDrives = lib.mkOption {
|
bootDrives = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
|
@ -207,7 +212,7 @@ in {
|
||||||
type = "topology";
|
type = "topology";
|
||||||
vdev = (
|
vdev = (
|
||||||
builtins.map (disks: {
|
builtins.map (disks: {
|
||||||
mode = "raidz2";
|
mode = config.host.storage.pool.mode;
|
||||||
members =
|
members =
|
||||||
builtins.map (disk: disk.name) disks;
|
builtins.map (disk: disk.name) disks;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue