Files
home-manager/tests/modules/programs/opencode/settings-tui-key-v2-warning.nix
Rimapus 6d9655f764 opencode: support OpenCode 2 cli settings
Add programs.opencode.cli for OpenCode 2's global cli.json, while
retaining programs.opencode.tui for OpenCode 1.

Support mutable CLI configuration through OPENCODE_CLI_CONFIG_CONTENT,
leaving cli.json writable by OpenCode. Add validation against the
configured package's CLI schema and warn when CLI or TUI settings do
not match the package version.
2026-10-23 11:35:25 -05:00

20 lines
445 B
Nix

{
imports = [ ./opencode-v2-stubs.nix ];
programs.opencode = {
enable = true;
settings.theme = "system";
};
test.asserts.warnings.expected = [
''
programs.opencode.settings contains deprecated TUI-specific keys: theme
These settings should be moved to programs.opencode.cli instead.
OpenCode requires terminal client settings in cli.json.
See: https://opencode.ai/v2/docs/cli/config
''
];
}