π Server Folder Structure & Production Hygiene
π― Objective
Establish clear, unambiguous directory boundaries across both the Server and Laptop to prevent development clutter from mixing with 24/7 production services.
πΊοΈ Standardized Directory Layout
π₯οΈ Production Server Layout
/home/kiskaadee/
βββ Config/ # NixOS declarative configuration for this host
βββ Deployments/ # Or Production/ - Live Docker compose services (Git tracked)
β βββ core/ # Ingress (Traefik, Authelia, Socket-Proxy)
β βββ apps/ # Individual standalone services
β βββ data/ # Persistent volumes or bind-mount configs
βββ Media/ # Jellyfin media libraries, recordings, storage
βββ second-brain/ # Synced knowledge base & operational docs
Rule for Server:
- No active development trees, compiler build caches (target/, node_modules/ in home), or transient scratchpads.
- All running services run as containers or declarative systemd units.
π» Laptop Workstation Layout
/home/kiskaadee/
βββ Config/ # Shared NixOS repository (laptop configuration)
βββ Projects/ # Active source code repositories
βββ Learn/ # Backend residency and study coursework
βββ Experiments/ # Prototypes, spike tests, scratchpads
βββ second-brain/ # Personal notes & architecture plans
βββ Downloads/ / Pictures/ # Standard user directories