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 = [