1{ config, lib, pkgs, options }: 2 3with lib; 4 5let 6 cfg = config.services.prometheus.exporters.domain; 7in 8{ 9 port = 9222; 10 serviceOpts = { 11 serviceConfig = { 12 ExecStart = '' 13 ${pkgs.prometheus-domain-exporter}/bin/domain_exporter \ 14 --bind ${cfg.listenAddress}:${toString cfg.port} \ 15 ${concatStringsSep " \\\n " cfg.extraFlags} 16 ''; 17 }; 18 }; 19}