let vm_domain = "abundos.eu"; in { module."nixos" = builtins.mapAttrs (service: hostname: { source = "../sync-nix"; inherit vm_domain hostname; config_tf = { terraform = { inherit hostname; domain = vm_domain; }; }; config_nix = '' { imports = [ # shared NixOS config $${path.root}/../common/shared.nix # FIXME: separate template options by service $${path.root}/options.nix # for service `forgejo` import `forgejo.nix` $${path.root}/../../machines/dev/${hostname}/${service}.nix # FIXME: get VM details from TF $${path.root}/../../machines/dev/${hostname} ]; } ''; }) { # wiki = "vm02187" # does not resolve # forgejo = "vm02116" # does not resolve # TODO: move these to a separate `host` dir dns = "fedi200"; # fedipanel = "fedi201"; }; }