mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +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.
11 lines
280 B
Nix
11 lines
280 B
Nix
{
|
|
programs.codex = {
|
|
enable = true;
|
|
settings = { };
|
|
};
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.codex/config.toml
|
|
assertPathNotExists home-files/.codex/config.yaml
|
|
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh 'CODEX_HOME'
|
|
'';
|
|
}
|