terraform { required_providers { proxmox = { source = "Telmate/proxmox" version = "2.9.14" } } } provider "proxmox" { pm_api_url = var.proxmox_api_url pm_api_token_id = var.proxmox_token_id pm_api_token_secret = var.proxmox_token_secret pm_tls_insecure = true } resource "proxmox_lxc" "unifi" { target_node = "pve" hostname = "unifi" ostemplate = "loki:vztmpl/nixos-23.11-default_20230606_amd64.tar.xz" unprivileged = false onboot = true memory = 2048 swap = 2048 rootfs { storage = "local-lvm" size = "32G" } network { name = "eth0" bridge = "vmbr0" ip = "10.0.0.207/24" gw = "10.0.0.1" } }