mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-10 23:32:50 +00:00
OpenCode v1.2.15 introduced a separate tui.json file for TUI-specific settings, deprecating theme/keybinds in config.json. Changes: - Add programs.opencode.tui option for TUI settings - Generate separate ~/.config/opencode/tui.json with proper schema - Add deprecation warnings for theme/keybinds in settings - Add tests for new functionality - Fix existing tests that used deprecated theme in settings See: https://opencode.ai/docs/config#tui Release: https://github.com/anomalyco/opencode/releases/tag/v1.2.15 Co-authored-by: Thierry Delafontaine <delafthi@pm.me>
16 lines
356 B
Nix
16 lines
356 B
Nix
{
|
|
programs.opencode = {
|
|
enable = true;
|
|
settings = {
|
|
model = "anthropic/claude-sonnet-4-20250514";
|
|
autoshare = false;
|
|
autoupdate = true;
|
|
};
|
|
};
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/opencode/opencode.json
|
|
assertFileContent home-files/.config/opencode/opencode.json \
|
|
${./opencode.json}
|
|
'';
|
|
}
|