14 KiB
type, status, tags
| type | status | tags | |||||
|---|---|---|---|---|---|---|---|
| project | active |
|
🌐 Homelab Ecosystem & Core Infrastructure
The Homelab project encompasses the architecture, automation, deployment pipelines, and operational runbooks powering the 24/7 personal infrastructure ecosystem hosted at roadtotech.me.
The environment runs on dedicated hardware as a declarative NixOS appliance, providing self-hosted productivity tools, internal developer platforms, edge routing, and automated GitOps workflows.
🏛️ System Topology & Architecture
The homelab is organized into four decoupled architectural layers to isolate failures and maintain zero-downtime operations:
- Edge & Security Layer:
- Traefik Reverse Proxy: Dynamic ingress routing over HTTPS with automated Let's Encrypt wildcard TLS certificates (
*.roadtotech.me). - Authelia SSO: ForwardAuth single sign-on with multi-factor authentication (2FA) protecting private services and dashboards.
- Dynu Dynamic DNS: Automated WAN address synchronization and fallback monitoring.
- Traefik Reverse Proxy: Dynamic ingress routing over HTTPS with automated Let's Encrypt wildcard TLS certificates (
- Core Control Plane (
~/Core):- Central homelab services managed as a declarative NixOS appliance, including Gitea (Git forge & CI/CD runner), Nextcloud, Vaultwarden, Homepage dashboard, and deployment webhooks.
- Workload Plane (
~/Sites):- Autonomous, containerized application stacks (Docker Compose) completely decoupled from Core infrastructure. Each service repository declares its own metadata, routing rules, and lifecycle via an
app.yamlmanifest.
- Autonomous, containerized application stacks (Docker Compose) completely decoupled from Core infrastructure. Each service repository declares its own metadata, routing rules, and lifecycle via an
- Host Foundation:
- Headless NixOS host system configured with encrypted secrets via SOPS-nix (
age), strict firewall isolation, and standardized systemd timers for maintenance.
- Headless NixOS host system configured with encrypted secrets via SOPS-nix (
📍 Source Code & Repositories
| Target | Location / URL | Description |
|---|---|---|
| Gitea Forge | homelab-core | Primary Git repository housing the NixOS appliance and Core services |
| Clone (SSH) | ssh://git@gitea.roadtotech.me:2223/kiskaadee/homelab-core.git |
Developer clone URL using SSH port 2223 |
| Workstation Path | ~/Homelab/Core |
Active local development checkout on workstation (~/Homelab/Core and ~/Homelab/Sites) |
| Production Target | server-remote:~/Core |
Production deployment checkout on the 24/7 server host |
💬 Open Discussions
Architectural inquiries and problem statements currently under evaluation that have not yet produced an active implementation plan:
- ❓ WhatsApp & Telegram AI Assistant Backend Architecture
- Focus: Evaluates architecture, webhook ingress, and trade-offs between Telegram Bot API and WhatsApp Cloud API for a personal AI assistant microservice (
~/Sites/homelab-assistant) connected to the Brain vault. - Current Status: Open inquiry examining authorization models, message formatting, cron triggers, and RAG search capabilities before formalizing an implementation plan.
- Focus: Evaluates architecture, webhook ingress, and trade-offs between Telegram Bot API and WhatsApp Cloud API for a personal AI assistant microservice (
🚧 Work in Progress (Active Plans)
Implementation roadmaps currently in progress (status: active) that are actively being executed or scheduled for deployment:
- 🟡 Architecture Consolidation & Hardening Roadmap v3
[Active]- 5-tier service taxonomy, authoritative Core repository registry, Stalwart vs. SnappyMail zero-data-loss relocation, workload Compose security policy, unified typed manifest engine, and platform readiness contracts.
- 📋 Execution Guide: Architecture Consolidation Implementation Guide v3
- 🟡 Rust Daemon Migration Plan: Standalone
dynu-monitor[Active]- Implementing a standalone Rust daemon with 30-second polling and round-robin public DNS resolution across 5 independent providers (Cloudflare, Quad9, Google, OpenDNS, Dynu).
- 🟡 Custom API Security Hardening & Threat Analysis
[Active]- Defense-in-depth security hardening for custom microservice APIs (Learning Hub and Minecraft dashboard) using Authelia ForwardAuth, token validation, and rate limiting.
- 🟡 Smart Selective Deployment Pipeline for Homelab Core
[Active]- Enhancing
appctland Gitea Actions with change-aware selective container restarts to prevent unnecessary service interruptions during routine deployments.
- Enhancing
- 🟡 appctl Engine V2: Architectural Modernization & Type-Safe Refactoring Plan
[Active]- Modernizing the homelab control utility into a clean, typed Python 3 engine with PyYAML parsing, explicit domain models, and a TDD test suite.
- 🟡 GitHub to Gitea Automated Batch Migration Plan
[Active]- Automated migration tooling using
ghandteaAPIs to migrate ~35 repositories from GitHub to self-hosted Gitea with push mirrors for redundancy.
- Automated migration tooling using
- 🟡 LVM Storage Optimization & Partition Resizing Strategy
[Active]- Storage space audit, disk cleanup runbooks, and a non-destructive LVM logical volume expansion procedure for the server's root filesystem.
🛠️ Canonical Guides & Runbooks
Operational runbooks and procedures for daily administration:
- Onboarding a New Application Stack — Step-by-step procedure for deploying new Docker Compose services in
~/Siteswithapp.yamland Traefik routing. - Jellyfin GPU Hardware Acceleration Guide — Configuring
/dev/dridevice passthrough, host group permissions, and GPU telemetry for hardware transcoding. - LLDAP & Authelia SSO Integration Runbook — Dynamic user directory configuration, Authelia LDAP auth, and pre-commit quality gate checks.
- Mail Deliverability & Outbound Relay Guide — Solving residential IP/PTR blocks and Spamhaus PBL using Stalwart and Brevo SMTP relay.
- Homepage Dashboard Reintegration into Core — Clean service discovery and configuration of gethomepage in Homelab Core.
- Managing Secrets and Authelia Users — Guide for editing SOPS-encrypted secrets and managing user authentication credentials.
- Server Maintenance and System Updates Runbook — Standard operating procedure for NixOS updates, garbage collection, and container pruning.
- Appctl & Application Manifests (
app.yaml) User Guide — Comprehensive reference for theappctlCLI tool andapp.yamlschema. - Brain GitOps & Auto-Sync Deployment Pipeline — Technical runbook on how Brain commits automatically validate and publish to
docs.roadtotech.me. - Dynu DDNS Domain Configuration Troubleshooting Runbook — Diagnostic and recovery steps for WAN address synchronization issues.
- Diagnosing Unexpected Server Shutdowns Runbook — Diagnostic procedure and checklist for investigating hardware thermal trips, power loss, and unexpected crashes.
🏛️ Completed Roadmaps & Resolved Discussions
Archived and foundational documentation for completed milestones:
Resolved Architectural Discussions
- Stalwart Mail Server Evaluation for Homelab Core — Evaluated Stalwart vs Mailcow, Poste.io, and Postfix; resolved via Stalwart deployment.
- Hostinger Business Email vs. Self-Hosted Stalwart — Compared cloud SaaS mail vs self-hosted mail with smart host relay.
- Dual-Email Schema: Internal Mailboxes vs External Recovery — Solved password recovery loops in identity directories with separate
mailandrecovery_emailattributes. - Decoupling User Management from Secrets via LLDAP — Migrated from static SOPS user databases to dynamic LDAP authentication.
- Authelia Session Lifetimes & Email Architecture — Configured 7d/3d session policies and email-based perimeter security.
- Homelab Repository Location & Placement Analysis — Evaluated
~/Homelabvs~/Projects/homelab; resolved via dedicated~/Homelabtree. - Multirepo Refactor: Homepage & Learning Hub Separation — Decoupled dashboard infrastructure from domain applications.
- NixOS Monorepo vs. Multi-Repo Architecture — Evaluated workstation and server decoupling; resolved via appliance migration.
- Decoupling
nixos-configandhomelab-core— Migration inventory and separation plan; resolved via repository split. - Dynamic Decentralized GitOps Dispatcher Architecture — Decoupled deployment webhook design; implemented in production.
- Gitea Git Credential Helper and Backup Strategy — Evaluated credential helpers and push mirroring; resolved via Git credential helper configuration.
- Dynu DDNS Polling Frequency and Rust Migration — Investigated polling intervals and language trade-offs; resolved via
dynu-monitor-rust-daemon.mdplan. - Dozzle Forward-Proxy Authentication & Persistent Volume Architecture — Evaluated Dozzle v2 login prompt vs ForwardAuth SSO; resolved via
DOZZLE_AUTH_PROVIDER=forward-proxyand persistent/datavolume. - Core Service Qualification & Portainer Deprecation — Evaluated platform service qualification criteria; resolved via complete deprecation of Portainer and retaining Gitea and CI runner decoupled.
Completed Plans
- 🟢 Diun Load-Shaping, Workload Exemption & Authenticated SMTPS Delivery (2026-09-24) — Resolved 6 post-deployment issues: Portainer bcrypt
$interpolation, high-concurrency DNS load mitigated viaWORKERS=6+JITTER=30s, local-build exemptions decentralized toSites/*, and Diun migrated to port 465 SMTPS with dedicated service account. 19 images clean, mail delivered authenticated. - 🟢 Clean Deprecation of Portainer from Core
- 🟢 Stalwart Mail Server & SnappyMail Webmail Deployment
- 🟢 Multirepo Refactor of Homepage & Learning Hub
- 🟢 Architecture Consolidation & Hardening Roadmap v2 (Superseded by v3; P0 GitOps trust boundary & automated invariant testing completed)
- 🟢 Architecture Consolidation Implementation Guide v2 (Superseded by v3)
- 🟢 Architecture Consolidation & Hardening Roadmap v1 (Superseded by v2)
- 🟢 Turn
homelab-coreinto a Declarative NixOS Appliance - 🟢 Core & Sites Cutover and Testing Plan
- 🟢 appctl Refactor & Decentralized
app.yamlMetadata Architecture - 🟢 appctl Git Synchronization & Full-Stack Lifecycle Strategy
- 🟢 CI/CD & Deployment Strategy
- 🟢 Real-Time Brain Synchronization & Gitea Push Mirroring
- 🟢 NixOS Server & Laptop Migration
- 🟢 Domain Migration (
roadtotech.me) - 🟢 Production Folder Structure Reorganization