From 6c6a4ecb42362ff69b0767ccdfbcb65b510558c0 Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Mon, 20 May 2024 00:57:21 +0200 Subject: [PATCH] add enable option to exporter --- nixos-module/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos-module/default.nix b/nixos-module/default.nix index d98eeac..05660ae 100644 --- a/nixos-module/default.nix +++ b/nixos-module/default.nix @@ -63,6 +63,7 @@ in }; options.services.prometheus.exporters.r09-receiver = with lib; { + enable = mkEnableOption (lib.mdDoc "the prometheus ${name} exporter"); port = mkOption { type = types.port; default = 9020; @@ -107,6 +108,7 @@ in }; # provide the prometheus exporter information for scraping + services.prometheus.exporters.r09-receiver.enable = true; services.prometheus.exporters.r09-receiver.port = cfg.PrometheusPort; users.groups."${cfg.group}" = { };