mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
types/zpool: use enum type for mode
This commit is contained in:
1 parent
b755564539
commit
321d75becb
1 file changed
+7
-1
+7
-1
@@ -13,7 +13,13 @@
|
|||||||
description = "Type";
|
description = "Type";
|
||||||
};
|
};
|
||||||
mode = lib.mkOption {
|
mode = lib.mkOption {
|
||||||
type = lib.types.str; # TODO zfs modes
|
type = lib.types.enum [
|
||||||
|
""
|
||||||
|
"mirror"
|
||||||
|
"raidz"
|
||||||
|
"raidz2"
|
||||||
|
"raidz3"
|
||||||
|
];
|
||||||
default = "";
|
default = "";
|
||||||
description = "Mode of the ZFS pool";
|
description = "Mode of the ZFS pool";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user