wip: depends_on (causes cycle)

This commit is contained in:
Kiara Grouwstra 2025-04-14 17:01:15 +02:00
parent 1dd48f66e4
commit 97d3b6710b
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -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? # FIXME settle for pwd when in /nix/store?
@ -102,7 +106,7 @@ data "external" "hash" {
resource "terraform_data" "nixos" { resource "terraform_data" "nixos" {
for_each = {for name, inst in merge( for_each = {for name, inst in merge(
local.peripherals, local.peripherals,
local.application_configs, local.applications,
) : name => inst if inst.cfg.enable} ) : name => inst if inst.cfg.enable}
triggers_replace = [ triggers_replace = [