ghost-one module: use enum

This commit is contained in:
Eric Sagnes 2016-11-04 13:03:18 +09:00
parent 18375a7331
commit 943f161fc5

View File

@ -21,8 +21,7 @@ in
language = mkOption {
default = "English";
type = types.addCheck types.str
(lang: elem lang [ "English" "Spanish" "Russian" "Serbian" "Turkish" ]);
type = types.enum [ "English" "Spanish" "Russian" "Serbian" "Turkish" ];
description = "The language of bot messages: English, Spanish, Russian, Serbian or Turkish.";
};