nixos-config/system/server/prometheus-exporters.nix
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

9 lines
205 B
Nix

{ config, lib, ... }:
{
config = lib.mkMerge [
(lib.mkIf config.services.nginx.enable {
services.prometheus.exporters.nginx.enable = true;
services.nginx.statusPage = true;
})
];
}