From c263be1dee447ea1e60605dcfd023f6587fe11b6 Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Sun, 16 Feb 2025 23:42:15 +0700 Subject: [PATCH] nixos/prometheus: add missing dns_sd_configs types From https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config: > The type of DNS query to perform. One of SRV, A, AAAA, MX or NS. I also simplified the doc string as it's redundant with the generated docs. --- nixos/modules/services/monitoring/prometheus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index d906a3c82296..58ef3fe4785b 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -718,8 +718,8 @@ let ''; }; - type = mkDefOpt (types.enum [ "SRV" "A" "AAAA" ]) "SRV" '' - The type of DNS query to perform. One of SRV, A, or AAAA. + type = mkDefOpt (types.enum [ "SRV" "A" "AAAA" "MX" "NS" ]) "SRV" '' + The type of DNS query to perform. ''; port = mkOpt types.port ''