diff --git a/incus/main.tf b/incus/main.tf index d561f38..07903f5 100644 --- a/incus/main.tf +++ b/incus/main.tf @@ -2,39 +2,35 @@ resource "incus_profile" "d" { name = "d" config = { - "limits.cpu" = 2 - "security.nesting" = true - "boot.autostart" = true - "security.privileged" = false + "limits.cpu" = 2 + "security.nesting" = true + "boot.autostart" = true + "security.privileged" = false "security.syscalls.intercept.mount" = false } + device { + name = "eth0" + type = "nic" + properties = { + network = "incusbr0" + } + } - # device { - # name = "shared" - # type = "disk" + device { + type = "disk" + name = "root" - # properties = { - # source = "/tmp" - # path = "/tmp" - # } - # } - - # device { - # type = "disk" - # name = "root" - - # properties = { - # pool = "default" - # path = "/" - # } - # } + properties = { + pool = "default" + path = "/" + } + } } resource "incus_instance" "observer-tofu" { name = "observer-tofu" image = "images:nixos/25.05/amd64" profiles = [ - "default", incus_profile.d.name ] config = {