mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
Kimi Code moved its desktop client into an internal repository in July 2026 (MoonshotAI/kimi-code#1849), so the polished surface is no longer open source; the CLI that stays behind overlaps opencode2 and pi. Removing it drops one more redundant harness.
20 lines
719 B
Nix
20 lines
719 B
Nix
{ config, ... }:
|
|
let
|
|
# The global rules are edited often, so link them out-of-store: an edit reaches
|
|
# the next agent session without a Home Manager switch. Same rationale as
|
|
# `home/base/tui/tuios`; the checkout path is hardcoded, like the repo's other
|
|
# out-of-store links.
|
|
rules = "${config.home.homeDirectory}/nix-config/agents/AGENTS.md";
|
|
link = config.lib.file.mkOutOfStoreSymlink rules;
|
|
in
|
|
{
|
|
# One canonical rules file, projected into every agent's config location.
|
|
home.file = {
|
|
".codex/AGENTS.md".source = link; # Codex
|
|
".pi/agent/AGENTS.md".source = link; # Pi
|
|
".agents/AGENTS.md".source = link; # cross-tool
|
|
};
|
|
|
|
xdg.configFile."opencode/AGENTS.md".source = link; # OpenCode
|
|
}
|