summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2021-12-26 19:15:06 +0100
committerNaïm Favier <n@monade.li>2022-02-24 20:51:40 +0000
commitef03562ebae513b506c58e198038352ee6ae5138 (patch)
tree25ddade4a0355f4d24303a0ca80a047a720d70af
parent11ad4742aa3c79443d7453fb139d5a3dad4cabfa (diff)
make option documentation compatible with nixos-search
-rw-r--r--default.nix19
1 files 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
<literal>body</literal>, then only body searches (as opposed to
- header) are affected. If set to <literal>no<literal>, searches may
+ header) are affected. If set to <literal>no</literal>, 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-<domain>.pem" and "key-<domain>.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 <option>config.services.redis.bind</option>";
description = ''
- Address that rspamd should use to contact redis. The default value
- is read from <literal>config.services.redis.bind</literal>.
+ 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 <literal>config.services.redis.port<literal>.
+ 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
- <literal>config.services.redis.requirePass<literal>.
+ 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.";
};
};