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

9 lines
205 B
Nix
Raw Normal View History

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