Skip to content

[Feature]: Allow creating new server with NixOS iso image #1185

@onnimonni

Description

@onnimonni

What whould you like to see?

Hey,

I can see that nixos base image is already available in the admin panel after server has been created:
Image

But when I try use it:

resource "hcloud_server" "my-server" {
  name        = "my-server"
  # nixos-minimal-25.05.803396.8f1b52b04f2c-aarch64-linux.iso
  image       = "nixos-minimal-25"
  server_type = "cax11"
  datacenter  = "hel1-dc2"
}

I get error:

$ opentofu apply -auto-approve
Plan: 1 to add, 0 to change, 0 to destroy.
hcloud_server.my-server: Creating...
╷
│ Error: image nixos-minimal-25 for architecture arm not found

Would you be willing to add this into the API and to the terraform provider too?

I think it's mainly missing as an option to the API since I can't find it when searching for all images:

data "hcloud_images" "arm" {
  with_architecture = ["arm"]
}
output "arm" {
  value = data.hcloud_images.arm
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions