diff --git a/lib/types/zpool.nix b/lib/types/zpool.nix index 12785f1..0bf97c9 100644 --- a/lib/types/zpool.nix +++ b/lib/types/zpool.nix @@ -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"; };