ghost-one module: use enum
This commit is contained in:
parent
18375a7331
commit
943f161fc5
@ -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.";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user