From 080251f06036832fd23236c7fb4607e615adc43a Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Fri, 23 Nov 2018 20:38:30 +0000 Subject: [PATCH] fix tor module hidden service version type --- modules/tor.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tor.nix b/modules/tor.nix index 1b49115..2569004 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.int // { check = (x: x == 2 || x == 3); }; + type = types.nullOr (types.addCheck types.int (x: x == 2 || x == 3)); }; };