Files
nixos-core/AGENTS.md
T
kiskaadee 1a50c8a668 feat(nixos): scaffold declarative NixOS appliance for homelab server
Phase 1 & 2 of the homelab-core NixOS migration plan.

Adds a fully standalone NixOS flake configuration targeting the
roadtotech.me homelab server. Goal: wipe & restore from any bare
NixOS install via `nixos-install --flake ~/Core#server`.

Changes:
- flake.nix: 2-input flake (nixpkgs channel tarball + sops-nix)
- flake.lock: generated lockfile pinning nixos-26.11pre1070770.8ce4ef6
- .sops.yaml: SOPS rules scoped to nixos/secrets.yaml (server + laptop keys)
- nixos/configuration.nix: clean standalone config; no HM, no desktop
  inheritance, no lib.mkForce; headless-optimised; SOPS set exactly once
- nixos/hardware-configuration.nix: copied from Config/hosts/server/
- nixos/secrets.yaml: copied SOPS-encrypted secrets from Config/hosts/server/
- nixos/modules/homeserver.nix: migrated; sops.defaultSopsFile removed
- nixos/modules/traefik-deployments.nix: migrated; sops.defaultSopsFile removed
- nixos/modules/dynu.nix: migrated; paths updated to ../scripts/
- nixos/scripts/monitor.py: dynu IP monitor Python script
- nixos/scripts/ddclient.conf: ddclient config template
- AGENTS.md: fix stale reference to deprecated desktop secrets path

Validated:
  nix flake check -> all checks passed
  nix build .#nixosConfigurations.server.config.system.build.toplevel \
    --no-link -> success (nixos-system-server-26.11.20260910.8ce4ef6)
2026-09-11 17:29:22 -05:00

26 lines
1.6 KiB
Markdown

# 🤖 Antigravity Workspace Guidelines: Homelab Core & Infrastructure
This repository is the central control plane for the `roadtotech.me` homelab cluster. Follow these operational rules across all tasks.
---
## 🏛️ Architectural Invariants
1. **Decentralized Manifests (`app.yaml`)**:
- Never hardcode application environment variables, domains, or port maps inside `Core/scripts/appctl` or `Core/scripts/appctl_engine.py`.
- Every application in `~/Sites` is self-describing via its own `app.yaml`.
2. **Read-Only Socket Proxy**:
- `socket-proxy` must remain restricted to read-only endpoints (`POST=0`, `DELETE=0`).
3. **Zero Hardcoded Secrets**:
- Never commit raw `.env` files, password strings, database files (`*.db`, `*.sqlite3`), or SSL certificates (`acme.json`, `*.key`).
- All runtime secrets are managed declaratively in `nixos/secrets.yaml` via SOPS and rendered to `/run/secrets/` at boot.
4. **License Invariant**:
- Preserve and maintain `The Unlicense` (public domain) across all Core and Sites repositories.
---
## 📚 Brain Vault & Continuous Learning
* **Knowledge Capture**: Whenever architectural designs, threat analyses, debugging insights, or `/learn` commands are executed, ensure a clear, structured markdown note is persisted to [`/home/kiskaadee/Brain/homelab/`](/home/kiskaadee/Brain/homelab) or [`/home/kiskaadee/Brain/learning/`](/home/kiskaadee/Brain/learning) and indexed in its corresponding `README.md`.
* **Obsidian & Docs Viewer Compatibility**: All documentation must be clean GitHub-flavored markdown compatible with Obsidian and the live docs viewer at `https://docs.roadtotech.me`.