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)
1.6 KiB
1.6 KiB
🤖 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
- Decentralized Manifests (
app.yaml):- Never hardcode application environment variables, domains, or port maps inside
Core/scripts/appctlorCore/scripts/appctl_engine.py. - Every application in
~/Sitesis self-describing via its ownapp.yaml.
- Never hardcode application environment variables, domains, or port maps inside
- Read-Only Socket Proxy:
socket-proxymust remain restricted to read-only endpoints (POST=0,DELETE=0).
- Zero Hardcoded Secrets:
- Never commit raw
.envfiles, password strings, database files (*.db,*.sqlite3), or SSL certificates (acme.json,*.key). - All runtime secrets are managed declaratively in
nixos/secrets.yamlvia SOPS and rendered to/run/secrets/at boot.
- Never commit raw
- License Invariant:
- Preserve and maintain
The Unlicense(public domain) across all Core and Sites repositories.
- Preserve and maintain
📚 Brain Vault & Continuous Learning
- Knowledge Capture: Whenever architectural designs, threat analyses, debugging insights, or
/learncommands are executed, ensure a clear, structured markdown note is persisted to/home/kiskaadee/Brain/homelab/or/home/kiskaadee/Brain/learning/and indexed in its correspondingREADME.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.