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