repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tor-browser: fix desktop icon (#365780)
[NixPkgs.git]
/
nixos
/
modules
/
services
/
monitoring
/
prometheus
/
exporters
/
domain.nix
blob
3fe7ebc0f64470883c6ec78d7b3375b485a38fe3
1
{
2
config,
3
lib,
4
pkgs,
5
options,
6
...
7
}:
8
9
let
10
cfg = config.services.prometheus.exporters.domain;
11
inherit (lib) concatStringsSep;
12
in
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
}