2.home-manager/tests/modules/programs/opencode/skills-directory.nix
Bob van der Linden 9bc3ca1230 opencode: skill -> skills
The skills option was creating files under ~/.config/opencode/skill/
(singular) but OpenCode documentation only mentions
~/.config/opencode/skills/ (plural). Both work, but using an
undocumented directory can be confusing.

Fixes: https://github.com/nix-community/home-manager/issues/8907
2026-03-19 21:32:45 +01:00

15 lines
433 B
Nix

{
programs.opencode = {
enable = true;
skills = {
data-analysis = ./skill-dir/data-analysis;
};
};
nmt.script = ''
assertFileExists home-files/.config/opencode/skills/data-analysis/SKILL.md
assertFileExists home-files/.config/opencode/skills/data-analysis/notes.txt
assertFileContent home-files/.config/opencode/skills/data-analysis/SKILL.md \
${./skill-dir/data-analysis/SKILL.md}
'';
}