Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 6s
relative links - Update all Homelab documents and engineering journals with core tags (`architecture`, `security`, `operations`, `ADR`). - Replace machine-specific `file:///` URLS and absolute local paths with portable relative Markdown links and code backticks. - Align Homelab project landing page and documentation status with current infrastructure topology
type, status, tags
| type | status | tags | ||||
|---|---|---|---|---|---|---|
| project | active |
|
❄️ NixOS Fleet & Declarative System Configuration
🎯 Project Overview
This project documents the architecture, flake hierarchy, host specializations, module designs, and operational maintenance for the workstation NixOS configuration managed in ~/Config.
Following the architectural decoupling of the homelab infrastructure into Core, Config functions as a dedicated standalone configuration for the mobile workstation (laptop), structured cleanly around system-level machine concerns (system/) and user-session domains (home/).
🏛️ System Topology & Workstation Model
graph TD
Flake["Config Flake (flake.nix)"] --> System["system/ (Privileged Root)"]
Flake --> Home["home/ (User Session)"]
System --> CoreSys["core.nix (Nix, locale, users, security)"]
System --> MachSys["hardware.nix (Machine services, PipeWire, Docker)"]
System --> DeskSys["desktop.nix (greetd, display management)"]
Home --> DeskHome["desktop.nix (Niri, Wayland, Alacritty)"]
Home --> DevHome["dev.nix (Neovim, compilers, LSPs, CLI secrets)"]
Home --> ShellHome["shell.nix (Bash, Tmux, Git, aliases)"]
| Host / Scope | Role | Environment | Key Subsystems |
|---|---|---|---|
laptop (Config) |
Mobile Dev Workstation | Graphical Wayland | Niri, Waybar, Alacritty, DevShells, Git/SSH keys, local LLM/GUI clients, CLI secrets tooling |
server (Core) |
24/7 Homelab Host | Headless Server | Docker daemon, Traefik, Socket-Proxy, homelab-gitops, SOPS Age secrets, Dynu DDNS |
📑 Plans & Execution Roadmaps
- 🟢 Decoupling Homelab Server & Standalone Workstation Architecture
[Completed]- Architectural blueprint and phased plan for removing
hosts/server/fromConfig, eliminating the "multi-host tax", and re-aligning the repository as a dedicated Niri workstation.
- Architectural blueprint and phased plan for removing
- 🟢 Secrets Management Architecture & Workstation Boundary Refinement
[Completed]- Clean removal of
sops-nixhost stubs fromConfig, operator authoring vs runtime consumer key architecture, compositor cleanup, and filesystem decoupling.
- Clean removal of
- 🟡 Adopting Official channels.nixos.org Tarballs
[Active]- Transitioning from GitHub-hosted Nixpkgs flake inputs to official
channels.nixos.orgzstd-compressed archives. - Flake registry pinning and evaluation speedup analysis.
- Transitioning from GitHub-hosted Nixpkgs flake inputs to official
- 🟢 Decommission Legacy Desktop Derivation
[Completed]- Pruned
hosts/desktop/andnixosConfigurations.desktopto standardize on a 2-host fleet (serverandlaptop).
- Pruned
- 🟢 SOPS Secrets Restructuring & Multi-User Authelia Support
[Completed]- Migrated flat SOPS secrets to service-scoped namespaces and added declarative Nix user database rendering.
- 🟢 DMS Runtime Ownership & Workstation Operations Manual
[Completed]- Documented DMS session invariants, runtime mutation boundaries, containerized reproducibility, and operational workflows.
📑 Guides & Reference Documentation
- Standalone Workstation Architecture & Secrets Decoupling Walkthrough
- Workstation refactor execution, Niri compositor cleanup, filesystem path decoupling, and verification results.
- Transitioning to Official channels.nixos.org Tarballs Walkthrough
- Flake input migration, base registry pinning, and dry-build verification.
- Decommissioning the Legacy Desktop Derivation Walkthrough
- Host removal validation, architecture doc sync, and dry builds.
- SOPS Secrets Restructuring & Multi-User Authelia Walkthrough
- Secret hierarchy re-encryption, template generation, and host dry-build verification.
- DMS Desktop Bootstrap & Container Reproducibility Validation
- Containerized flake check, one-time bootstrap behavior, and runtime mutation model verification.
- Terminal Workspace Subsystem Architecture & Navigation
- Niri compositor window bindings, Alacritty terminal integration, and
tmux-sessionizer(ts) workspace switching.
- Niri compositor window bindings, Alacritty terminal integration, and
- Integrated Linters & Quality Checks in Nix Flake Check
- CI static analysis and linting (
ruff-lint,statix,deadnix,nixfmt,luacheck) declared inflake.nix.
- CI static analysis and linting (
🏛️ Architectural Discussions & Records
- Discussion: NixOS Monorepo vs. Multi-Repo Architecture for Homelab & Workstations
- Discussion: Decoupling
nixos-configandhomelab-core
🔗 Related Projects & Locations
- Local Flake Repository:
~/Config - Homelab Services Project: Homelab & Infrastructure Planning