fix: cannot build because alloy is not enabled

This commit is contained in:
Tigor Hutasuhut 2024-09-12 14:37:12 +07:00
parent 1a25e4a26c
commit 0ef913eb1f

View file

@ -23,10 +23,8 @@ in
labels = { labels = {
"io.containers.autoupdate" = "registry"; "io.containers.autoupdate" = "registry";
}; };
}; };
environment.etc."alloy/config.alloy".text = lib.mkIf config.services.alloy.enable /*hcl*/ '' environment.etc."alloy/config.alloy".text = /*hcl*/ ''
prometheus.scrape "podman" { prometheus.scrape "podman" {
targets = [{__address__ = "${ip}:9882"}] targets = [{__address__ = "${ip}:9882"}]