Source code for my website
Technologies used:
nix
- dev environment, packaging, deployment. Provides all necessary packages.zola
- static website generator from markdownOpenTofu
- IaC for Hetzner & CloudflareHetzner Cloud
- VM hostingCloudflare
- caching & proxyPrometheus
- metrics collectionGrafana
- metrics visualistaion
The only tool required to build and deploy everything is Nix (flakes have to be enabled).
nix
installs all the other tools (terraform
, zola
, etc.).
NixOS
is used to define the server contents. The website is served via nginx
, which is running as a NixOS
service, as well as Prometheus
and Grafana
. Grafana
can be accessed at grafana.gafni.dev.
.
├── infra # deployment code
├── LICENSE
└── www # website code
Nix
& OpenTofu
usage is inspired by the excellent series of posts by @flakm