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
14 lines
347 B
Nix
14 lines
347 B
Nix
{
|
|
programs.opencode = {
|
|
enable = true;
|
|
skills = {
|
|
pdf-processing = ./pdf-processing-SKILL.md;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/opencode/skills/pdf-processing/SKILL.md
|
|
assertFileContent home-files/.config/opencode/skills/pdf-processing/SKILL.md \
|
|
${./pdf-processing-SKILL.md}
|
|
'';
|
|
}
|