From b0e56acef90e1726c588aac13fe7e5fae0ed1a95 Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 13 Aug 2022 11:55:45 +0200 Subject: nixos/*: remove links to options in code blocks markdown simply cannot represent these. would be nice to have, but it'll have to happen some other way (if at all). --- .../modules/services/monitoring/prometheus/exporters/dovecot.nix | 8 ++++---- nixos/modules/services/monitoring/prometheus/exporters/mail.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/exporters/dovecot.nix b/nixos/modules/services/monitoring/prometheus/exporters/dovecot.nix index d86b750ba5f..80a2f92881d 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/dovecot.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/dovecot.nix @@ -33,10 +33,10 @@ in work with this exporter: { - = true; - = "/var/run/dovecot2/old-stats"; - = [ "old_stats" ]; - = ''' + services.prometheus.exporters.dovecot.enable = true; + services.prometheus.exporters.dovecot.socketPath = "/var/run/dovecot2/old-stats"; + services.dovecot2.mailPlugins.globally.enable = [ "old_stats" ]; + services.dovecot2.extraConfig = ''' service old-stats { unix_listener old-stats { user = dovecot-exporter diff --git a/nixos/modules/services/monitoring/prometheus/exporters/mail.nix b/nixos/modules/services/monitoring/prometheus/exporters/mail.nix index 205188538a2..4ebe7128e2a 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/mail.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/mail.nix @@ -121,7 +121,7 @@ let It's possible to work around the issue with a config like this: { - services.rspamd.locals."multimap.conf".text = ''' + services.rspamd.locals."multimap.conf".text = ''' ALLOWLIST_PROMETHEUS { filter = "email:domain:tld"; type = "from"; -- cgit 1.4.1