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/agents-path.nix
Austin Horstman 53538044d9 tests/opencode: expand tests for agents / commands
Include various tests for the agents and command file generation and
different ways of configuring it.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-17 07:23:42 -05:00

13 lines
300 B
Nix

{
programs.opencode = {
enable = true;
agents = {
test-agent = ./test-agent.md;
};
};
nmt.script = ''
assertFileExists home-files/.config/opencode/agent/test-agent.md
assertFileContent home-files/.config/opencode/agent/test-agent.md \
${./test-agent.md}
'';
}