feat(agents): add Crush and disable usage tracking

This commit is contained in:
Ryan Yin
2026-09-18 21:20:33 +08:00
committed by ryan4yin | 二花
parent 23258a06d4
commit bcee9f2ac8
9 changed files with 85 additions and 21 deletions
+23 -9
View File
@@ -1,4 +1,17 @@
{ pkgs, llm-agents, ... }:
let
agentPackages = llm-agents.packages.${pkgs.stdenv.hostPlatform.system};
codexNoAnalytics = pkgs.writeShellApplication {
name = "codex";
text = ''
exec ${agentPackages.codex}/bin/codex \
--config analytics.enabled=false \
--config feedback.enabled=false \
--config check_for_update_on_startup=false \
"$@"
'';
};
in
{
home.packages =
with pkgs;
@@ -8,16 +21,17 @@
qrtool # decode/encode qr code
]
# AI Agent Tools
++ (with llm-agents.packages.${pkgs.stdenv.hostPlatform.system}; [
++ [
# Agents
codex
cursor-cli
opencode
kimi-code
pi
omp
codexNoAnalytics
agentPackages.cursor-agent
agentPackages.opencode
agentPackages.kimi-code
agentPackages.pi
agentPackages.omp
agentPackages.crush
# Utilities
rtk # CLI proxy that reduces LLM token consumption
]);
agentPackages.rtk # CLI proxy that reduces LLM token consumption
];
}
+18
View File
@@ -0,0 +1,18 @@
{
home.sessionVariables = {
DO_NOT_TRACK = "1";
KIMI_DISABLE_TELEMETRY = "1";
PI_TELEMETRY = "0";
PI_SKIP_VERSION_CHECK = "1";
CRUSH_DISABLE_METRICS = "1";
CRUSH_DISABLE_PROVIDER_AUTO_UPDATE = "1";
OPENCODE_CONFIG_CONTENT = builtins.toJSON {
share = "disabled";
};
OPENCODE_DISABLE_AUTOUPDATE = "1";
};
}