Files
second-brain/projects/homelab

type, status, tags
type status tags
project active
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 /home/kiskaadee/Projects/active/homelab/Core Active local development checkout on laptop workstation
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 [Active]
    • Formalizing the four-tier architectural boundaries, hardening the dynamic GitOps dispatcher with closed action enums, and codifying the app.yaml schema contract.
  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. 🟡 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.
  6. 🟡 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