What is the process for publishing the official NixOS AMIs?

As the title says, what is the process for publishing the new AMIs?

There is this file: https://github.com/NixOS/nixpkgs-channels/blob/91d5b3f07d27622ff620ff31fa5edce15a5822fa/nixos/modules/virtualisation/ec2-amis.nix, generated using this script https://github.com/NixOS/nixpkgs/blob/14f812aeef754760e7b1f87f7b7c9a887cbf7765/nixos/maintainers/scripts/ec2/create-amis.sh.

However, I’m not clear who and when runs it?

Would it be possible to update 19.03 images, for example, to have a more up-to-date version of AMI?

The NixOS Foundation’s infrastructure team generates and uploads AMIs usually once per stable release.

For 19.09’s release, this ticket was created: https://github.com/NixOS/nixos-org-configurations/issues/90 and Amine sent this PR: https://github.com/NixOS/nixpkgs/pull/72186

We should update the release process documenattion (cc @disassembler) to include an issue to the nixos-org-configurations repo, for generating new AMIs.


1 Like

Thanks for the response @grahamc!

Would it be possible to upload AMIs periodically with up-to-date version of nixpkgs? That way we reduce the amount of copying with nix-copy-closure and keep the running systems robust, as newly started instances will already contain all important patches.

(And in case volunteers are needed for this, I’ll be more than happy to help)


I have some experience modifying the create-amis.sh for custom purposes. @knl, let me know if I can help.