mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-10 22:31:12 +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>
21 lines
548 B
Nix
21 lines
548 B
Nix
{
|
|
programs.opencode = {
|
|
enable = true;
|
|
settings = {
|
|
model = "anthropic/claude-sonnet-4-5";
|
|
default_agent = "build";
|
|
};
|
|
tui = {
|
|
theme = "opencode";
|
|
};
|
|
};
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/opencode/opencode.json
|
|
assertFileExists home-files/.config/opencode/tui.json
|
|
assertFileContent home-files/.config/opencode/tui.json \
|
|
${./tui-with-settings-tui.json}
|
|
assertFileContent home-files/.config/opencode/opencode.json \
|
|
${./tui-with-settings-config.json}
|
|
'';
|
|
}
|