Files
second-brain/projects/homelab
kiskaadee 7117a392e7
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
refactor(homelab): restructure dynu-monitor into discussion and native Rust plan
- Remove nested dynu-monitor sub-project directory
- Add discussion on DDNS polling frequency and Rust vs Python trade-offs
- Establish active implementation plan for standalone Rust daemon
- Update homelab README catalog and validate graph integrity
2026-09-11 21:52:02 -05:00
..

type, status, tags
type status tags
project active
homelab
infrastructure

🌐 Homelab & Infrastructure Planning

This project documents the architectural roadmaps, infrastructure designs, deployment automation, and system administration workflows for the homelab ecosystem.



💬 Architectural Discussions ("Why & What If?")

Foundational inquiries, problem statements, and trade-off analyses that inform the homelab's direction:

  1. NixOS Monorepo vs. Multi-Repo Architecture
    • Evaluates coupling between workstation and server configurations; explores the trade-offs of single flake vs. standalone server appliance.
  2. Decoupling nixos-config and homelab-core
    • Analysis and file migration inventory for transferring the server definition into homelab-core.
  3. Gitea Git Credential Helper, Protocol Trade-Offs, and Backup Architecture
    • Evaluates Git credential management, SSH vs. HTTPS, and primary (Gitea) vs. backup (GitHub) topology.
  4. Dynu DDNS Polling Frequency, Resolver Rotation, and Rust Migration
    • Evaluates 30m vs. 30s polling intervals, provider rate limits, and the rationale for migrating from Python directly to a native Rust daemon.

📑 Plans & Execution Roadmaps ("How & When?")

Phased implementation plans originating from architectural decisions:

🏛️ Core Architecture & Evolution

  1. 🟡 Architecture Consolidation & Hardening Roadmap [Active]
    • Four-tier topology formalization, GitOps security hardening (closed dispatch enum), app.yaml schema contract, and invariant tests.
  2. 🟢 Turn homelab-core into a Declarative NixOS Appliance [Completed]
    • Execution plan that migrated the headless server configuration into a self-contained NixOS appliance.

🖥️ Server 24/7 & Infrastructure

  1. 🟢 NixOS Server & Laptop Migration [Completed]
    • Headless conversion of the server host and laptop workstation provisioning.
  2. 🟢 Domain Migration (roadtotech.me) [Completed]
    • Cutover from legacy arch-services.mywire.org to apex roadtotech.me.
  3. 🟢 Production Folder Structure Reorganization [Completed]
    • Established strict production boundaries: ~/Core, ~/Sites, ~/Brain, and ~/Config.
  4. 🟡 LVM Storage Optimization & Partition Resizing Strategy [Active]
    • Storage topology analysis, desktop indexer cache reclamation, and zero-data-loss LVM resize runbook.

📦 Orchestration (appctl)

  1. 🟢 Core & Sites Cutover and Testing Plan [Completed]
    • Zero-downtime cutover runbook from ~/Deployments to decoupled ~/Core and ~/Sites.
  2. 🟢 appctl Refactor & Decentralized app.yaml Metadata Architecture [Completed]
    • Decentralized service manifests, canonical aliasing, and Homepage services.yaml compilation.
  3. 🟢 appctl Git Synchronization & Full-Stack Lifecycle Strategy [Completed]
    • Real-time Git tracking status (✓ Synced, ⬆ Ahead, ⬇ Behind, * Dirty), --fetch, and atomic appctl update.
  4. 🟡 Smart Selective Deployment Pipeline for Homelab Core [Active]
    • Change-aware Gitea GitOps & CLI deployment, selective container restarts, and bash autocompletion sync.

🍵 Gitea & GitOps

  1. 🟢 CI/CD & Deployment Strategy [Completed]
    • Design of automated deployment pipelines, self-hosted Gitea runner, and dynamic webhook dispatching.
  2. 🟢 Real-Time Brain Synchronization & Gitea Push Mirroring [Completed]
    • Pilot pipeline: zero-delay hooks, Gitea Actions CI, and instant reflection on docs.roadtotech.me.
  3. 🟡 GitHub to Gitea Automated Batch Migration Plan [Active]
    • Batch migration automation (~35 repos) via gh and tea API, visibility retention, and recovery runbook.

🔒 Security & Hardening

  1. 🟡 Custom API Security Hardening & Threat Analysis [Active]
    • Attack surface review, Authelia ForwardAuth integration, rate limiting, and JWT fail-fast validation.

🔄 Dynamic DNS & Infrastructure Daemons

  1. 🟡 Rust Daemon Migration Plan: Standalone dynu-monitor [Active]
    • High-frequency 30-second polling, 5-endpoint round-robin rotation, and zero-runtime-dependency Rust daemon.

🛠️ Canonical Guides & Runbooks ("How to Use & Operate?")

Operational procedures and standard operating runbooks:

  1. Onboarding a New Application Stack
    • Step-by-step procedure: directory setup in ~/Sites, writing app.yaml, Traefik labels, and appctl up.
  2. Managing Secrets and Authelia Users
    • How to edit nixos/secrets.yaml with SOPS, generate Argon2 password hashes, and add users to Authelia.
  3. Server Maintenance and System Updates Runbook
    • NixOS appliance upgrades, systemd post-update checklist, garbage collection, and Docker pruning.
  4. Appctl & Application Manifests (app.yaml) User Guide
    • CLI reference for inspecting container health, managing stack lifecycles, and authoring app.yaml.
  5. Brain GitOps & Auto-Sync Deployment Pipeline
    • How changes committed locally automatically push, validate in Gitea Actions, and deploy to docs.roadtotech.me.
  6. Dynu DDNS Domain Configuration Troubleshooting Runbook
    • Diagnostic steps for verifying WAN rotations, checking SOPS age keys, and forcing ddclient updates.