personal homelab and IaC setup www.frytg.digital
Files
README.md

locally setups #

Hosts #

  • locally0 — GMKTec G3 (N150, 16 GB, 1 TB NVMe). Primary homelab: full observability + app stack (MQTT, Grafana, Loki, Prometheus, Victoria Metrics/Logs, Dashy, Uptime Kuma, Home Assistant, Miniflux, Postgresus, Vector, OCI registry, etc.). Port list in locally0/README.md.
  • leno0 — Lenovo ThinkCentre M715q (Ryzen 5 PRO 2400GE, 32 GB, 128 GB). Sidecar workload box: Perses, n8n.

Each host dir mirrors the same layout: nixos/ (config synced via just nix-download / nix-upload), services/ (k8s manifests), k3s-cert.{sops.,}yaml (cluster join secret), k3s/, plus a local README.md with the port map.

Layout #

  • locally0/, leno0/ — per-host NixOS + k3s manifests, keyed by hostname.
  • common/ — cluster-shared manifests (services/, tailscale/).
  • infra/ — Terraform for cloud resources (Scaleway, GCP, Bunny, DNS, storage buckets, IAM). State in infra/state/.
  • just/ — split just recipes per concern (nixos, k3s, kubernetes, services, backup, mqtt, encryption, common). Root justfile imports them; just --list shows the merged view.
  • K8UP.md — k8up backup operator install + restic restore.
  • .env.<host>.sops.yaml — per-host sops-encrypted env (age + PGP keys in .sops.yaml).

Kubernetes #

K3s stores its data in /var/lib/rancher/k3s.

You can download the remote state with just cp-k3s-storage.