Files
second-brain/01-plans/homelab/server-24-7/folder-structure-reorganization.md
kiskaadee 4e0dfe0c8c
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s
docs(references): rewrite cross-vault relative links against path manifest
2026-09-28 15:58:25 -05:00

59 lines
2.4 KiB
Markdown

---
type: plan
status: completed
project: homelab
tags:
- operations
- architecture
- homelab
- server
- storage
- hygiene
---
# 📁 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.
---
## 🗺️ Realized Production Layout
> [!NOTE]
> The initial proposal for a monolithic `~/Deployments` directory was superseded by the decoupled `~/Core` and `~/Sites` architecture documented in [Homelab Architecture: Appctl & Decentralized Repositories](../../../04-learning/guides/homelab/appctl-operations-and-manifest-guide.md) and executed in [Core & Sites Cutover and Testing Plan](../core-sites-cutover-testing-plan.md).
### 🖥️ Production Server Layout (`~/`)
```text
~/
├── Core/ # Hardened Ingress & Gateway (Traefik, Authelia, Socket-Proxy)
├── Sites/ # Decentralized micro-repositories for each container stack
├── Brain/ # Synced personal knowledge base & operational docs
├── Config/ # NixOS declarative configuration (hosts/server)
└── Media/ # High-capacity media storage for Jellyfin (/media)
```
*Rules for Server*:
- **No** active development trees, compiler build caches (`target/`, `node_modules/` in home root), or transient scratchpads.
- All running services run as containers orchestrated via `appctl` or declarative systemd units.
---
### 💻 Laptop Workstation Layout (`~/`)
```text
~/
├── Projects/ # Active source code repositories
│ └── active/ # Current work trees (e.g. homelab micro-repos, new-repo, dynu-monitor)
├── Learn/ # Backend residency and study coursework
├── Experiments/ # Prototypes, spike tests, scratchpads
├── Brain/ # Local canonical knowledge graph vault
├── Config/ # NixOS configuration repository (hosts/laptop)
└── Downloads/ / Pictures/ # Standard user directories
```
---
## 🔗 Related Documents
* [Homelab Architecture: Appctl & Decentralized Repositories](../../../04-learning/guides/homelab/appctl-operations-and-manifest-guide.md)
* [Core & Sites Cutover and Testing Plan](../core-sites-cutover-testing-plan.md)