mirror of
https://github.com/nix-community/disko.git
synced 2024-09-19 02:27:27 +03:00
types/zpool: use enum type for mode
This commit is contained in:
parent
b755564539
commit
321d75becb
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user