mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-22 15:24:03 +01:00
18 lines
436 B
Nix
18 lines
436 B
Nix
{
|
|
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"}
|
|
'';
|
|
}
|