Skip to content

Our NixOS-based server ❄️

License

Notifications You must be signed in to change notification settings

Dr-Nekoma/trashcan

Repository files navigation

Trashcan 🗑️

built with nix

This repository contains the server configuration to host our applications, currently we deploy the following projects here:

Developmennt

Running Locally (With Qemu)

nix develop --impure
# followed by
run
# connect to postgres
sudo --user postgres psql

Deployment

Provisioning with Terraform

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

Deploying with Nix

After provisioning the infrastructure, you won’t need Terraform anymore, all deploys can be done in pure Nix.

just deploy
# or
deploy

Acknowledgements

  • The Terraform-based bootstrap is a modification from the great setup found in the NixOS in Production book.