about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEric Sagnes <eric.sagnes@gmail.com>2016-11-04 13:03:18 +0900
committerEric Sagnes <eric.sagnes@gmail.com>2016-11-04 13:03:18 +0900
commit943f161fc54ce4a4ca2411eafc76dab716b03c6d (patch)
tree025403b7d694be8a7661ec149bb0e2f3a7272d22 /nixos
parent18375a7331dbaeb9a7a8aa0b505454bafd31f57b (diff)
ghost-one module: use enum
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/games/ghost-one.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/games/ghost-one.nix b/nixos/modules/services/games/ghost-one.nix
index 5762148df2bb1..71ff6bb2f3f06 100644
--- a/nixos/modules/services/games/ghost-one.nix
+++ b/nixos/modules/services/games/ghost-one.nix
@@ -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.";
       };