diff --git a/system/podman/metrics.nix b/system/podman/metrics.nix index 1afc9a3..385c604 100644 --- a/system/podman/metrics.nix +++ b/system/podman/metrics.nix @@ -1,9 +1,11 @@ { config, lib, ... }: let ip = "10.88.222.222"; + cfg = config.profile.podman; + inherit (lib) mkIf; in { - virtualisation.oci-containers.containers."metrics" = { + virtualisation.oci-containers.containers."metrics" = mkIf (cfg.enable && config.profile.services.telemetry.enable) { image = "quay.io/navidys/prometheus-podman-exporter"; hostname = "metrics"; autoStart = true;