mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-19 00:01:23 +02:00
fix(agents): leave Codex config unmanaged
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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"}
|
||||
'';
|
||||
}
|
||||
@@ -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,6 +1,3 @@
|
||||
{
|
||||
imports = [
|
||||
../../linux/core.nix
|
||||
../../base/codex.nix
|
||||
];
|
||||
imports = [ ../../linux/core.nix ];
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ in
|
||||
# AI Agent Tools
|
||||
++ [
|
||||
# Agents
|
||||
agentPackages.codex
|
||||
agentPackages.opencode
|
||||
agentPackages.kimi-code
|
||||
agentPackages.pi
|
||||
|
||||
Reference in New Issue
Block a user