fix tor module hidden service version type

This commit is contained in:
Jonas Nick 2018-11-23 20:38:30 +00:00
parent c226ddce1f
commit 080251f060

View File

@ -671,7 +671,7 @@ in
version = mkOption { version = mkOption {
default = null; default = null;
description = "If configured, the hidden service uses version 3"; 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));
}; };
}; };