This repository contains the server configuration to host our applications, currently we deploy the following projects here:
nix develop --impure
# followed by
run
# connect to postgres
sudo --user postgres psql
just update-vars
just plan
just apply
# if you need to nuke the infra as well
just destroy
After the initial terraform deploy, make sure to run:
just rekey
After provisioning the infrastructure, you won’t need Terraform anymore, all deploys can be done in pure Nix.
just deploy
# or
deploy
- The Terraform-based bootstrap is a modification from the great setup found in the NixOS in Production book.