opencode: init (#7320)

This commit is contained in:
Thierry Delafontaine 2025-07-05 23:02:49 +02:00 committed by GitHub
parent f117b383dd
commit 5a49fe448e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{
"autoshare": false,
"autoupdate": true,
"model": "anthropic/claude-sonnet-4-20250514",
"theme": "opencode"
}

View file

@ -0,0 +1,3 @@
{
opencode-settings = ./settings.nix;
}

View file

@ -0,0 +1,16 @@
{
programs.opencode = {
enable = true;
settings = {
theme = "opencode";
model = "anthropic/claude-sonnet-4-20250514";
autoshare = false;
autoupdate = true;
};
};
nmt.script = ''
assertFileExists home-files/.config/opencode/config.json
assertFileContent home-files/.config/opencode/config.json \
${./config.json}
'';
}