From 200930035aee8c431fe15e72a6d359e1086358f6 Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 26 Aug 2026 18:42:51 -0400 Subject: [PATCH] docs(agents): clarify writing guidance --- AGENTS.md | 12 ---- modules/agents/context/AGENTS.md | 106 +++++++++++++++++++------------ 2 files changed, 64 insertions(+), 54 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 449c47e..efdcb78 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -63,8 +63,6 @@ One flake builds every machine I own. ## Gotchas -### Architecture - - Guest modules are host-agnostic wiring, while host files own deployment-specific service configuration such as served volumes and host paths. For example, `guests/copyparty.nix` should expose options and translate them into guest mounts/service settings, while `hosts/pikachu/default.nix` chooses `/inbox`, `/media`, and their backing paths. - `self.lib.registry.collect { hosts = self.nixosConfigurations; }` reads only top-level host `config.registry` declarations. @@ -78,21 +76,15 @@ One flake builds every machine I own. For an optional special-argument fallback, bind module arguments through `@args`. Test `args ? ` inside the module body. -### Build Inputs - - `chaotic-nyx` must **not** follow this flake's `nixpkgs`. Chaotic builds its packages against its own pinned `nixpkgs`. Its overlay defaults to `onTopOf = "flake-nixpkgs"`, the cache-friendly path. That setup lets `nyx-cache.chaotic.cx` serve the CachyOS kernel instead of building it from source. Chaotic packages do not see this flake's `unstable` or `stable` overlays. -### Deployment - - Remote deploy helpers that run target-side `sudo` over SSH need a TTY. Use `ssh -t` unless the target command cannot prompt for sudo credentials. -### Host Environment - - This host has no `python` or `python3` command on its ordinary `PATH`. For one-off Python commands, use Nix explicitly, such as `nix shell nixpkgs#python3 -c python3