fix(agents): leave Codex config unmanaged

This commit is contained in:
Ryan Yin
2026-09-18 21:20:33 +08:00
committed by ryan4yin | 二花
parent d47710ebe2
commit d80efddd17
5 changed files with 3 additions and 36 deletions
-13
View File
@@ -1,13 +0,0 @@
def main [config_file: path, yq: path] {
mkdir ($config_file | path dirname)
if not ($config_file | path exists) {
touch $config_file
}
^$yq eval --inplace --input-format toml --output-format toml (
'.analytics.enabled = false | ' +
'.feedback.enabled = false | ' +
'.check_for_update_on_startup = false'
) $config_file
}
-17
View File
@@ -1,17 +0,0 @@
{
config,
lib,
pkgs,
llm-agents,
...
}:
let
configFile = "${config.home.homeDirectory}/.codex/config.toml";
in
{
home.packages = [ llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.codex ];
home.activation.configureCodexPrivacy = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
run ${pkgs.nushell}/bin/nu ${./codex-privacy.nu} ${lib.escapeShellArg configFile} ${lib.escapeShellArg "${pkgs.yq-go}/bin/yq"}
'';
}
+1 -2
View File
@@ -3,8 +3,6 @@ let
agentPackages = llm-agents.packages.${pkgs.stdenv.hostPlatform.system};
in
{
imports = [ ../codex.nix ];
home.packages =
with pkgs;
[
@@ -15,6 +13,7 @@ in
# AI Agent Tools
++ [
# Agents
agentPackages.codex
agentPackages.opencode
agentPackages.kimi-code
agentPackages.pi
+1 -4
View File
@@ -1,6 +1,3 @@
{
imports = [
../../linux/core.nix
../../base/codex.nix
];
imports = [ ../../linux/core.nix ];
}
+1
View File
@@ -85,6 +85,7 @@ in
# AI Agent Tools
++ [
# Agents
agentPackages.codex
agentPackages.opencode
agentPackages.kimi-code
agentPackages.pi