Files
second-brain/06-projects/homelab/README.md
T
kiskaadee 8d07f68f16
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
plan(homelab): record architecture docs reorganization plan and walkthrough
Promote reorganization plan and operational walkthrough from inbox to canonical
vault locations and update homelab project index.
2026-09-29 12:40:07 -05:00

15 KiB

type, status, tags
type status tags
project active
architecture
operations
security
homelab
infrastructure

🌐 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:

  1. 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.
  2. 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.
  3. 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.yaml manifest.
  4. Host Foundation:
    • Headless NixOS host system configured with encrypted secrets via SOPS-nix (age), strict firewall isolation, and standardized systemd timers for maintenance.

📍 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.

🚧 Work in Progress (Active Plans)

Implementation roadmaps currently in progress (status: active) that are actively being executed or scheduled for deployment:

  1. 🟡 Architecture Consolidation & Hardening Roadmap & Execution Plan v4 [Active]
    • Unified roadmap and execution blueprint: 3-tier architecture (Software vs. Deployment vs. Platform), OCI provenance model, two workload deployment classes, authoritative Core registry, Stalwart vs. SnappyMail zero-data-loss relocation, workload Compose security policy, unified typed manifest engine, linear control path (KISS), and two operational inspection axes with three revision identities.
    • 🏛️ Architectural Decision Record: Homelab 3-Tier Architecture & Provenance
    • 💬 Architectural Discussion: Legacy Multirepo to 3-Tier Migration Rationale
  2. 🟡 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).
  3. 🟡 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.
  4. 🟡 Smart Selective Deployment Pipeline for Homelab Core [Active]
    • Enhancing appctl and Gitea Actions with change-aware selective container restarts to prevent unnecessary service interruptions during routine deployments.
  5. 🟡 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.
  6. 🟡 GitHub to Gitea Automated Batch Migration Plan [Active]
    • Automated migration tooling using gh and tea APIs to migrate ~35 repositories from GitHub to self-hosted Gitea with push mirrors for redundancy.
  7. 🟡 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:


🏛️ Completed Roadmaps & Resolved Discussions

Archived and foundational documentation for completed milestones:

Resolved Architectural Discussions

Completed Plans