variable "flake_ref" { type = string } variable "flake_sha" { type = string } job "matrix-prometheus" { datacenters = [ "homelab-1" ] type = "service" group "matrix-prometheus" { count = 1 restart { attempts = 5 delay = "5s" } network { mode = "bridge" } service { name = "matrix-prometheus" port = "0" } task "matrix-prometheus" { driver = "docker" config { nix_flake_ref = "${var.flake_ref}#nixngSystems.matrixPrometheus.config.system.build.toplevel" nix_flake_sha = var.flake_sha entrypoint = [ "init" ] } } task "matrix-prometheus-connect-nginx" { driver = "docker" config { nix_flake_ref = "${var.flake_ref}#nixngSystems.matrixPrometheusConnectNginx.config.system.build.toplevel" nix_flake_sha = var.flake_sha entrypoint = [ "init" ] template { data = <