From ab438a4d5149801168201bbf53467dda092359f6 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Fri, 23 Nov 2018 22:15:27 +0000 Subject: [PATCH] Another type correction in tor module --- modules/tor.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tor.nix b/modules/tor.nix index 2569004..9c72e01 100644 --- a/modules/tor.nix +++ b/modules/tor.nix @@ -671,7 +671,7 @@ in version = mkOption { default = null; description = "If configured, the hidden service uses version 3"; - type = types.nullOr (types.addCheck types.int (x: x == 2 || x == 3)); + type = types.nullOr (types.enum [ 2 3 ]); }; };