Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dr-nekoma/trashcan
Our NixOS-based server ❄️
https://github.com/dr-nekoma/trashcan
age agenix justfile linux nix nix-flakes nixos server terraform
Last synced: 11 days ago
JSON representation
Our NixOS-based server ❄️
- Host: GitHub
- URL: https://github.com/dr-nekoma/trashcan
- Owner: Dr-Nekoma
- License: agpl-3.0
- Created: 2024-10-17T21:30:47.000Z (21 days ago)
- Default Branch: master
- Last Pushed: 2024-10-26T21:33:14.000Z (12 days ago)
- Last Synced: 2024-10-26T23:16:42.757Z (12 days ago)
- Topics: age, agenix, justfile, linux, nix, nix-flakes, nixos, server, terraform
- Language: Nix
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* Trashcan 🗑️
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_srcAfter 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.