Prototype aarch64 ami builder for amazon ec2


I recently generated a aarch64 AMI image that manages to boot on Amazon’s A1 instances.

So, I wanted to leave this commit here for whovever the next person is that is looking for a starting point:

Would be amazing to get some official NixOS AMI going at some point so people can quickly spin up private remote builders for themselves.

I took the shortest, quick & dirty path to getting something working. There’s one or two harmless seeming error messages during boot.
Also got started on top of someone’s cross-compilation branch but couldn’t get cross-compilation working. So, this commit is no based on master. But I suspect it should basically cherry-pick cleanly onto the current nixpkgs master.



Some follow-up for how to then deploy with nixops over here: