Amazon Images / AMIs

NixOS images are published under AWS Account ID

Terraform / OpenTofu

You can use terraform to query for the latest image

provider "aws" {
  region = "eu-central-1"
}

data "aws_ami" "nixos_arm64" {
  owners      = ["_OWNER_ID_"]
  most_recent = true

  filter {
    name   = "name"
    values = ["nixos/23.11*"]
  }
  filter {
    name   = "architecture"
    values = ["arm64"]
  }
}

resource "aws_instance" "nixos_arm64" {
  ami           = data.aws_ami.nixos_arm64.id
  instance_type = "t4g.nano"
}

AWS CLI

aws ec2 describe-images --owners _OWNER_ID_ \
  --filter 'Name=name,Values=nixos/23.11*' \
  --filter 'Name=architecture,Values=arm64'

AMI table

Here are the latest NixOS images available in the Amazon cloud.

The data this table is generated from can be found at https://nixos.github.io/amis/images.json.

Creation date Image ID