From 04fa5dcdb8a6fc6b4d9fce101c093031f4d52168 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 7 Apr 2016 12:55:39 +0200 Subject: [PATCH] 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 --- nixos/modules/services/misc/taskserver/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index 9cda787ae1a4..58e7377ec9c5 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -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 for full details. ''; };