Prototype aarch64 ami builder for amazon ec2

#1

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: https://github.com/rehno-lindeque/nixpkgs/commit/7fd9d5582623077271331efb73d314c8db8decf5

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

Notes:
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.

Thanks

2 Likes
#2

Some follow-up for how to then deploy with nixops over here: https://github.com/NixOS/nixpkgs/issues/52779#issuecomment-473674269