Ghost One: add a check for language property values.
svn path=/nixos/trunk/; revision=25162
This commit is contained in:
parent
e90a1cfc59
commit
5055c6dc29
@ -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.";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user