opencode: init (#7320)
This commit is contained in:
parent
f117b383dd
commit
5a49fe448e
4 changed files with 78 additions and 0 deletions
6
tests/modules/programs/opencode/config.json
Normal file
6
tests/modules/programs/opencode/config.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"autoshare": false,
|
||||
"autoupdate": true,
|
||||
"model": "anthropic/claude-sonnet-4-20250514",
|
||||
"theme": "opencode"
|
||||
}
|
||||
3
tests/modules/programs/opencode/default.nix
Normal file
3
tests/modules/programs/opencode/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
opencode-settings = ./settings.nix;
|
||||
}
|
||||
16
tests/modules/programs/opencode/settings.nix
Normal file
16
tests/modules/programs/opencode/settings.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue