# SPDX-FileCopyrightText: 2023 The TVL Authors # # SPDX-License-Identifier: MIT # This module deploys a NixOS host by building a system closure # located at the specified attribute in the current repository. # # The closure's derivation path is persisted in the Terraform state to # determine after Nix evaluation whether the system closure has # changed and needs to be built/deployed. # # The system configuration is then built (or substituted) on the # machine that runs `terraform apply`, then copied and activated on # the target machine using `nix-copy-closure`. variable "attrpath" { description = "attribute set path pointing to the NixOS system closure" type = string } variable "target_host" { description = "address (IP or hostname) at which the target is reachable" type = string } variable "entrypoint" { description = <