mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 08:31:03 +01:00
- Configuration file is now placed in XDG_CONFIG_HOME/codex/config.toml by default for versions >=0.2.0 when preferXdgDirectories is enabled. - Falls back to ~/.codex/config.yaml for versions <0.2.0 and to ~/.codex/config.toml when preferXdgDirectories is disabled - Sets CODEX_HOME environment variable to $XDG_CONFIG_HOME/codex when using XDG directories. - Updated tests to verify XDG directory behavior and environment variable presence.
17 lines
497 B
Nix
17 lines
497 B
Nix
{
|
|
home.preferXdgDirectories = true;
|
|
programs.codex = {
|
|
enable = true;
|
|
custom-instructions = ''
|
|
- Always respond with emojis
|
|
- Only use git commands when explicitly requested
|
|
'';
|
|
};
|
|
nmt.script = ''
|
|
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
|
|
'export CODEX_HOME="/home/hm-user/.config/codex"'
|
|
assertFileExists home-files/.config/codex/AGENTS.md
|
|
assertFileContent home-files/.config/codex/AGENTS.md \
|
|
${./AGENTS.md}
|
|
'';
|
|
}
|