e77426822f
Signed-off-by: Matt Layher <mdlayher@gmail.com>
19 lines
400 B
Nix
19 lines
400 B
Nix
{ config, lib, pkgs, options }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.prometheus.exporters.keylight;
|
|
in
|
|
{
|
|
port = 9288;
|
|
serviceOpts = {
|
|
serviceConfig = {
|
|
ExecStart = ''
|
|
${pkgs.prometheus-keylight-exporter}/bin/keylight_exporter \
|
|
-metrics.addr ${cfg.listenAddress}:${toString cfg.port} \
|
|
${concatStringsSep " \\\n " cfg.extraFlags}
|
|
'';
|
|
};
|
|
};
|
|
}
|