types/zpool: use enum type for mode

This commit is contained in:
DavHau 2023-09-04 23:02:33 +02:00
parent b755564539
commit 321d75becb

View File

@ -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";
};