clan-infra/terraform/web01/main.tf

23 lines
665 B
Terraform
Raw Permalink Normal View History

locals {
2023-07-04 14:43:31 +00:00
}
2023-09-05 14:09:51 +00:00
module "deploy" {
source = "github.com/nix-community/nixos-anywhere//terraform/all-in-one"
2023-09-05 14:09:51 +00:00
nixos_system_attr = ".#nixosConfigurations.web01.config.system.build.toplevel"
nixos_partitioner_attr = ".#nixosConfigurations.web01.config.system.build.diskoScript"
target_host = var.ipv4_address
instance_id = "web01"
debug_logging = true
extra_files_script = "${path.module}/decrypt-ssh-secrets.sh"
disk_encryption_key_scripts = [{
path = "/tmp/secret.key"
script = "${path.module}/decrypt-zfs-key.sh"
}]
2023-07-04 14:43:31 +00:00
}
locals {
nixos_vars = {
ipv6_address = var.ipv6_address
2023-07-04 14:43:31 +00:00
}
}