nixos/taskserver: Fix type/description for ciphers

Referring to the GnuTLS documentation isn't very nice if the user has to
use a search engine to find that documentation. So let's directly link
to it.

The type was "str" before, but it's actually a colon-separated string,
so if we set options in multiple modules, the result is one concatenated
string.

I know there is types.envVar, which does the same as separatedString ":"
but I found that it could confuse the reader of the Taskserver module.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-04-07 12:55:39 +02:00
parent 33f948c88b
commit 04fa5dcdb8
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -120,12 +120,14 @@ in {
};
ciphers = mkOption {
type = types.nullOr types.str;
type = types.nullOr (types.separatedString ":");
default = null;
example = "NORMAL";
description = ''
List of GnuTLS ciphers to use. See the GnuTLS documentation for full
details.
example = "NORMAL:-VERS-SSL3.0";
description = let
url = "https://gnutls.org/manual/html_node/Priority-Strings.html";
in ''
List of GnuTLS ciphers to use. See the GnuTLS documentation about
priority strings at <link xlink:href="${url}"/> for full details.
'';
};