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.
This commit is contained in:
Jeremy Fleischman
2025-02-16 23:46:29 +07:00
parent d6c5b1e1d4
commit c263be1dee
@@ -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 ''