home-manager/gui: Manage Codex with mutable settings

Pin Codex independently through `llm-agents.nix` and update unstable
home-manager for `programs.codex.mutableSettings`.

Declare the status line, including both usage windows, while preserving
imperative settings during activation.
This commit is contained in:
2026-10-03 22:11:19 +01:00
parent 73e538ad1f
commit e7ec6740f1
4 changed files with 186 additions and 24 deletions
+10
View File
@@ -62,6 +62,16 @@ Generated profiles deploy in this order:
`ssh-machine <name> bash -s < script.sh`. If a flaky agent stalls public-key authentication, use
`SSH_AUTH_SOCK= ssh-machine …`.
## Codex
The shared GUI home-manager module installs Codex from the `llm-agents` input, retaining
that input's tested nixpkgs pin. Run `nix flake update llm-agents`, then switch the system
or home configuration to use the updated package.
`programs.codex.mutableSettings` merges the declared status-line settings into the writable
`~/.codex/config.toml` during activation. Declared values take precedence on each switch;
other settings, including model selection, providers and project trust, remain imperative.
## Devshell commands
The repo ships a `numtide/devshell` ([`devshell/`](../devshell), entered via `direnv`). Run a