Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dr-nekoma/trashcan

A multi-purpose server written in Nix/NixOS❄️
https://github.com/dr-nekoma/trashcan

age justfile linux nix nix-flakes nixos postgresql server terraform

Last synced: about 1 month ago
JSON representation

A multi-purpose server written in Nix/NixOS❄️

Awesome Lists containing this project

README

        

* Trashcan 🗑️

#+html: built with nix

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

+ [[https://github.com/Dr-Nekoma/lyceum][Lyceum]]

** Developmennt

*** Running Locally (With Qemu)

#+begin_src shell
nix develop --impure
# followed by
run
# connect to postgres
sudo --user postgres psql
#+end_src

** Deployment

*** Provisioning with Terraform

#+begin_src shell
just update-vars
just plan
just apply
# if you need to nuke the infra as well
just destroy
#+end_src

After the initial terraform deploy, make sure to run:
#+begin_src shell
just rekey
#+end_src

*** Deploying with Nix

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

#+begin_src shell
just deploy
# or
deploy
#+end_src

* Acknowledgements

+ The Terraform-based bootstrap is a modification from the great setup found in the
[[https://github.com/Gabriella439/nixos-in-production][NixOS in Production]] book.