nixos-config/system/server/prometheus-exporters.nix

10 lines
205 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ config, lib, ... }:
{
config = lib.mkMerge [
(lib.mkIf config.services.nginx.enable {
services.prometheus.exporters.nginx.enable = true;
services.nginx.statusPage = true;
})
];
}