nixos-config/nixos/system/server/prometheus-exporters.nix
2021-09-25 20:28:25 +02: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;
})
];
}