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)); }; };