Home lab
One flake declares a server and two workstations, joined by a
WireGuard mesh. Every host boots through Secure Boot and starts from a
clean root on each boot, keeping only the state it declares. The server
hosts:
- Edge — Traefik in front of every service, with a
wildcard certificate through Cloudflare DNS.
- Identity — Keycloak for single sign-on and
self-registration, and OpenBao for secrets.
- Developer platform — Forgejo with autoscaled CI
runners, and GitOps through ArgoCD and Kargo.
- Compute and storage — an Incus cluster across all
three machines on Ceph, running a Talos Kubernetes cluster with
Cilium.
- Applications — a full mail server, OpenCloud with
Collabora, Trilium, Open WebUI and SearXNG, among others.
- Observability — VictoriaMetrics with vmalert rules
and Perses dashboards, with alerts by email.
- Backups — encrypted daily Restic snapshots to
Backblaze B2, taken from a filesystem snapshot and kept on a
grandfather-father-son schedule.
docs architecture source nixos wireguard incus ceph talos restic
Workstation
My editor, configured in Lua: language servers, debugging,
Jupyter-style notebooks through molten, image previews, and competitive
programming with my competitest fork.
source lua neovim
The desktop around it. The centrepiece is a Quickshell monitor
manager for Hyprland: it arranges displays, assigns workspaces, mirrors
outputs and maps the graphics tablet, with Hyprland itself as the only
source of truth.
source qml quickshell hyprland
Software
A workbench for the theory of computation. It covers:
- Automata on a canvas or in a text DSL, with word traces.
- Determinization, minimization, and regex ⇄ NFA.
- CFG and PDA conversions, and multi-tape Turing machines.
- TikZ export.
- A dojo whose answers are graded by the engine, with an LLM
tutor.
It speaks English and Spanish.
app docs source rust sveltekit typescript postgresql kubernetes
Batch conversion engine with a TUI. Converters are Lua scripts,
pipelines run in stages with parallel jobs, and builds are incremental,
backed by SQLite. Templates install from Git: pandoc, mermaid, plantuml,
structurizr, nasm. This site is built with it.
docs source rust lua sqlite nix
MCP server that gives LLM agents typed tools over Anki and Trilium.
For Anki it uses the sync protocol, so no desktop app has to run. It
takes a backup or saves a revision before every write, so mistakes can
be undone.
docs source python mcp nixos
呼び出し, the caller who summons the wrestlers into the ring. A
Discord control plane for a self-hosted AI companion stack on a remote
GPU machine. It has a live dashboard, summon and dismiss buttons, an
approval gate for admins, and console output streamed into the
channel.
rust discord llm
Small things
- remote-pad
drives the mouse and keyboard from a phone through ydotool, for Wayland
compositors without the RemoteDesktop portal.
- mdbhop migrates
MariaDB databases between servers over SSH, with a dump and restore run
from the developer’s machine.
- joselito is a
Flutter web app that embeds a Three.js VRM avatar.
Hardware
A printable water turret that finds a flame in any direction and puts
it out. An ESP32 aims a pan/tilt nozzle and drives the pump. The parts
are parametric build123d models that snap, press or slide together, and
the docs include 3D guides for wiring and assembly.
docs source
esp32 c++ build123d 3d-printing
From a phone video of a head turning around to a millimetre-accurate
model of it. The pipeline segments each frame, runs photogrammetry and
reconstructs the surface. It then refits a printable prop mask to that
face with a chosen gap.
source python photogrammetry cad 3d-printing
Research
Global photovoltaic power prediction from the European Commission’s
hourly PVGIS simulations. It compares XGBoost, a two-stage XGBoost
cascade and a spatio-temporal model. The training data comes from my own
concurrent scraper.
source python xgboost pytorch
Solves symmetric and asymmetric travelling salesman instances from
TSPLIB with MAX-MIN Ant System and shows the tours as they improve.
Built so new solvers plug into a common interface.
write-up source rust ant-colony-optimization tsplib
Multi-agent simulation that pits Optimal Reciprocal Collision
Avoidance against Reynolds steering on four benchmark scenarios. ORCA
has 97 to 99.98% fewer collisions.
source
simulation multi-agent
Computational geometry algorithms with real-time visualization.
source zig sdl3
Upstream
Forks
Submit providers for Kattis and CS Academy, and metadata kept for
received problems.
lua neovim
Reports PO token and player health at /status, and times
out stalled token generation.
typescript deno
Work
Kubernetes platform at USFQ
I built and run a hub-spoke platform of three clusters (hub, test,
production) on Oracle Linux, as Infrastructure Consultant. The source is
private.
- Ansible bootstraps the clusters. ArgoCD on the hub reconciles the
spokes from Git, and Kargo promotes images from test to production.
- HAProxy routes the multi-cluster API and HTTPS traffic by SNI. Its
configuration goes through validation and deployment in CI/CD.
- Calico with native BGP routing, Linux and Windows workers, and
Longhorn storage.
- Secrets in OpenBao, synced by External Secrets. Images in Harbor,
signed with Cosign. Kyverno admission policies.
- VictoriaMetrics and Perses: per-team metric isolation behind GitLab
SSO, alert rules with unit tests, and a dead-man switch on the
spokes.
- Velero backups through the CSI data mover. A daily job restores one
and checks it. CloudNativePG archives WAL continuously.
- Self-hosted GitLab CE on Kubernetes, with runners on every
cluster.
- Service onboarding automated with n8n: an agent opens the GitOps
merge requests and a human approves the plan before anything runs.
kubernetes ansible argocd kargo haproxy calico
openbao velero victoriametrics gitlab n8n