nixos-config/system/server/prometheus-exporters.nix
2019-12-20 17:54:26 +13:00

8 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;
})
];
}