nixos/prometheus-mail-exporter: misc fixes

- Fix misspelled option. mkRenamedOptionModule is not used because the
option hasn't really worked before.
- Add missing cfg.telemetryPath arg to ExecStart.
- Fix mkdir invocation in test.

Changed files
+3 -2
nixos
modules
services
monitoring
prometheus
exporters
tests
+2 -1
nixos/modules/services/monitoring/prometheus/exporters/mail.nix
···
Timeout until mails are considered "didn't make it".
'';
};
-
disableFileDelition = mkOption {
+
disableFileDeletion = mkOption {
type = types.bool;
default = false;
description = ''
···
ExecStart = ''
${pkgs.prometheus-mail-exporter}/bin/mailexporter \
--web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
+
--web.telemetry-path ${cfg.telemetryPath} \
--config.file ${
if cfg.configuration != null then configurationFile else (escapeShellArg cfg.configFile)
} \
+1 -1
nixos/tests/prometheus-exporters.nix
···
after = [ "postfix.service" ];
requires = [ "postfix.service" ];
preStart = ''
-
mkdir -p 0600 mail-exporter/new
+
mkdir -p -m 0700 mail-exporter/new
'';
serviceConfig = {
ProtectHome = true;