1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/opencode/empty-rules.nix
Thierry Delafontaine 08edcbe9df 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
2025-07-24 11:05:45 -05:00

9 lines
154 B
Nix

{
programs.opencode = {
enable = true;
rules = "";
};
nmt.script = ''
assertPathNotExists home-files/.config/opencode/AGENTS.md
'';
}