mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +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";
|
||||
};
|
||||
mode = lib.mkOption {
|
||||
type = lib.types.str; # TODO zfs modes
|
||||
type = lib.types.enum [
|
||||
""
|
||||
"mirror"
|
||||
"raidz"
|
||||
"raidz2"
|
||||
"raidz3"
|
||||
];
|
||||
default = "";
|
||||
description = "Mode of the ZFS pool";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user