From ef03562ebae513b506c58e198038352ee6ae5138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sun, 26 Dec 2021 19:15:06 +0100 Subject: make option documentation compatible with nixos-search --- default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/default.nix b/default.nix index f46f1a4..f142422 100644 --- a/default.nix +++ b/default.nix @@ -243,7 +243,7 @@ in description = '' Fail searches when no index is available. If set to body, then only body searches (as opposed to - header) are affected. If set to no, searches may + header) are affected. If set to no, searches may fall back to a very slow brute force search. ''; }; @@ -488,7 +488,7 @@ in description = '' Scheme 2) This is the folder where the certificate will be created. The name is - hardcoded to "cert-.pem" and "key-.pem" and the + hardcoded to "cert-DOMAIN.pem" and "key-DOMAIN.pem" and the certificate is valid for 10 years. ''; }; @@ -677,28 +677,27 @@ in if (ip == "0.0.0.0" || ip == "::") then "127.0.0.1" else if isIpv6 ip then "[${ip}]" else ip; + defaultText = lib.literalDocBook "computed from "; description = '' - Address that rspamd should use to contact redis. The default value - is read from config.services.redis.bind. + Address that rspamd should use to contact redis. ''; }; port = mkOption { type = types.port; default = config.services.redis.port; + defaultText = lib.literalExpression "config.services.redis.port"; description = '' - Port that rspamd should use to contact redis. The default value is - read from config.services.redis.port. + Port that rspamd should use to contact redis. ''; }; password = mkOption { type = types.nullOr types.str; default = config.services.redis.requirePass; + defaultText = lib.literalExpression "config.services.redis.requirePass"; description = '' - Password that rspamd should use to contact redis, or null if not - required. The default value is read from - config.services.redis.requirePass. + Password that rspamd should use to contact redis, or null if not required. ''; }; }; @@ -804,6 +803,7 @@ in start program = "${pkgs.systemd}/bin/systemctl start rspamd" stop program = "${pkgs.systemd}/bin/systemctl stop rspamd" ''; + defaultText = lib.literalDocBook "see source"; description = '' The configuration used for monitoring via monit. Use a mail address that you actively check and set it via 'set alert ...'. @@ -887,6 +887,7 @@ in passphraseFile = mkOption { type = types.nullOr types.path; default = null; + description = "Path to a file containing the encryption password or passphrase."; }; }; -- cgit v1.2.3