This repository provides two Terraform modules:
-
./nixos
- A Terraform module for auto-deploying a NixOS configuration to a target host -
./ami
- A Terraform module for computing the correct NixOS AMI to use
You can find an example Terraform project using these modules in the
./example
directory.
The main reason this repository exists is because the terraform-nixos
repository is abandoned. I wanted to simplify the upstream project in two
major ways:
-
I wanted to simplify the deployment logic with
nixos-rebuild
β¦ using the trick documented in this blog post
-
I wanted to simplify the AMI module
β¦ by not requiring the list to be manually updated like this
However, since the upstream project doesn't appear to be maintained I created my own opinionated fork that is simpler than the original. The main omissions compared to the original are: