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:
parent
33f948c88b
commit
04fa5dcdb8
@ -120,12 +120,14 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ciphers = mkOption {
|
ciphers = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr (types.separatedString ":");
|
||||||
default = null;
|
default = null;
|
||||||
example = "NORMAL";
|
example = "NORMAL:-VERS-SSL3.0";
|
||||||
description = ''
|
description = let
|
||||||
List of GnuTLS ciphers to use. See the GnuTLS documentation for full
|
url = "https://gnutls.org/manual/html_node/Priority-Strings.html";
|
||||||
details.
|
in ''
|
||||||
|
List of GnuTLS ciphers to use. See the GnuTLS documentation about
|
||||||
|
priority strings at <link xlink:href="${url}"/> for full details.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user