From 5055c6dc29e8c85524c10776fb8db45bb76d6817 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Fri, 17 Dec 2010 07:33:03 +0000 Subject: [PATCH] Ghost One: add a check for language property values. svn path=/nixos/trunk/; revision=25162 --- modules/services/games/ghost-one.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/services/games/ghost-one.nix b/modules/services/games/ghost-one.nix index 2b4610df29c1..2d1195a043da 100644 --- a/modules/services/games/ghost-one.nix +++ b/modules/services/games/ghost-one.nix @@ -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."; };