From 97d3b6710b821a7926667bcdc6c0836efcd5b792 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Mon, 14 Apr 2025 17:01:15 +0200 Subject: [PATCH] wip: depends_on (causes cycle) --- launch/main.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launch/main.tf b/launch/main.tf index ecc64951..4052a222 100644 --- a/launch/main.tf +++ b/launch/main.tf @@ -86,6 +86,10 @@ locals { } } } + applications = { for name, inst in local.application_configs : name => merge(inst, { + # depends_on = [for name in local.peripheral_configs : module.deploy[name]] + }) + } } # FIXME settle for pwd when in /nix/store? @@ -102,7 +106,7 @@ data "external" "hash" { resource "terraform_data" "nixos" { for_each = {for name, inst in merge( local.peripherals, - local.application_configs, + local.applications, ) : name => inst if inst.cfg.enable} triggers_replace = [