From 1f5977468c81ceb684bdc058ffc94e7fc788a8fe Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 13 Apr 2025 13:24:45 +0200 Subject: [PATCH] ditch hermetic to simplify - still gets infinite recursion --- launch/main.tf | 14 +++++--------- launch/shared.nix | 2 -- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/launch/main.tf b/launch/main.tf index 3cdcc9e4..d620f3ac 100644 --- a/launch/main.tf +++ b/launch/main.tf @@ -109,24 +109,20 @@ module "deploy" { target_system = local.system NIX_PATH = join(":", [for name, path in local.pins : "${name}=${path}"]) deploy_environment = var.deploy_environment - hermetic = true config_pwd = path.root config = <<-EOT - let + { terraform = builtins.fromJSON ''${jsonencode({ domain = var.domain hostname = each.value.hostname initialUser = var.initialUser })}''; - in - import { - system = "${local.system}"; - specialArgs = { inherit terraform; }; - modules = [ - # ${path.root}/options.nix + imports = [ + ${path.root}/options.nix ${path.root}/shared.nix ${path.root}/${each.key}.nix - # (terraform) + # FIXME: get VM details from TF + ${path.root}./infra/test-machines/${each.value.hostname} ]; } EOT diff --git a/launch/shared.nix b/launch/shared.nix index fd7436c6..46d6ccc5 100644 --- a/launch/shared.nix +++ b/launch/shared.nix @@ -12,8 +12,6 @@ in ../services/fediversity ./resource.nix - # FIXME: get VM details from TF - ../infra/test-machines/${hostname} ]; fediversityVm.name = hostname; fediversity = {