Ghost One: add a check for language property values.

svn path=/nixos/trunk/; revision=25162
This commit is contained in:
Evgeny Egorochkin 2010-12-17 07:33:03 +00:00
parent e90a1cfc59
commit 5055c6dc29

View File

@ -5,6 +5,7 @@ let
cfg = config.services.ghostOne;
ghostUser = "ghostone";
stateDir = "/var/lib/ghost-one";
in
{
@ -20,6 +21,7 @@ in
language = mkOption {
default = "English";
check = lang: elem lang [ "English" "Spanish" "Russian" "Serbian" "Turkish" ];
description = "The language of bot messages: English, Spanish, Russian, Serbian or Turkish.";
};