opencode: add support for global custom instructions via rules option
- Introduce `rules` option to provide global custom instructions for opencode - Write `rules` content to `~/.config/opencode/AGENTS.md` if non-empty - Update tests to cover presence and absence of `AGENTS.md` file with rules content
This commit is contained in:
parent
0a98177bb8
commit
08edcbe9df
5 changed files with 105 additions and 2 deletions
9
tests/modules/programs/opencode/empty-rules.nix
Normal file
9
tests/modules/programs/opencode/empty-rules.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
rules = "";
|
||||
};
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/opencode/AGENTS.md
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue