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
3.5 KiB
3.5 KiB
type, project, tags
| type | project | tags | |||||
|---|---|---|---|---|---|---|---|
| guide | nixos |
|
Walkthrough: Standalone Workstation Architecture & Secrets Decoupling
Overview
Following the migration of homelab server infrastructure to the dedicated Core repository, the primary system configuration repository (~/Config) was transformed from a multi-host fleet hierarchy into a standalone, domain-driven configuration for the mobile workstation (laptop).
Subsequently, all remaining workstation boundaries, compositor residue, and secrets architecture were refined, verified, and successfully activated on the host.
1. Secrets Architecture & Clean Decoupling
- Clarified Roles: The workstation acts strictly as the administrative authoring station for homelab credentials, while the server is a headless consumer.
- Removed Host Secrets Stubs:
- Deleted stale root
.sops.yaml. - Removed
sops-nixflake input fromflake.nix.
- Deleted stale root
- Preserved Operator Toolchain: Retained
sops,age, andrbwCLI packages inhome/dev.nixso secrets inCore/nixos/secrets.yamlcan continue to be edited and rotated locally. - Rewrote Runbook: Updated
docs/secrets-management.mdwith a clear GitOps diagram explaining the author-consumer split and step-by-step instructions for managingCoresecrets from the laptop.
2. Compositor Cleanliness (Niri-Native)
- Removed Hyprland Session Target: Deleted
systemd.user.targets.hyprland-sessionfromhome/desktop.nix. - Streamlined Screen Recorder: Refactored
home/scripts/record.shto query Niri directly (niri msg -j focused-output) and removed all legacyhyprctlchecks.
3. Decoupled Filesystem Paths
- Eliminated Hard Runtime Path Dependency:
- Removed
$HOME/Core/scriptsfromsessionPathinhome/default.nix. - Removed
$HOME/Core/scriptsfrom thePATHexport inhome/shell.nix. - Preserved only standard user binary paths (
$HOME/.local/binand$HOME/.cargo/bin).
- Removed
4. Semantic & Documentation Precision
- Machine Services & Peripherals: Updated
system/hardware.nixheader to accurately reflect machine-level daemons (PipeWire, Docker, Bluetooth, power management, printing). - Updated Upstream DMS Options: Removed deprecated
enableSystemMonitoringandenableClipboardPastefromsystem/desktop.nix(now natively built into DMS). - Refined Architectural Principles in
architecture.md:- Clarified that workstation OpenSSH remote access
\neqhomelab server infrastructure. - Refined "Git is the source of truth" to target reproducible configuration decisions, acknowledging runtime state (SSH keys, machine-id, caches).
- Formally documented the dual-composition model (
flake.nixcomposingsystem/andhome/). - Rephrased package placement invariant around execution context.
- Clarified that workstation OpenSSH remote access
- Documentation Path Fixes:
- Fixed stale
modules/user/terminal.nixindocs/tmux.md. - Fixed stale
modules/user/apps.nixindocs/development-environments.mdanddocs/package-and-secrets.md.
- Fixed stale
5. Verification Results
| Validation Command | Status | Details |
|---|---|---|
nix flake check |
PASSED | Flake inputs, schema, and laptop configuration evaluated cleanly. |
nix build .#nixosConfigurations.laptop.config.system.build.toplevel --no-link |
PASSED | Complete dry build succeeded, compiling all derivations. |
sudo nixos-rebuild switch --flake .#laptop |
PASSED | System successfully activated into new generation without regressions. |