Another type correction in tor module

This commit is contained in:
Jonas Nick 2018-11-23 22:15:27 +00:00
parent 080251f060
commit ab438a4d51

View File

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