opencode: make the rules option also accept a path
This commit is contained in:
parent
c199de6cd8
commit
fddb33a1a5
4 changed files with 29 additions and 9 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
opencode-settings = ./settings.nix;
|
||||
opencode-empty-settings = ./empty-settings.nix;
|
||||
opencode-rules = ./rules.nix;
|
||||
opencode-rules-inline = ./rules-inline.nix;
|
||||
opencode-rules-path = ./rules-path.nix;
|
||||
opencode-empty-rules = ./empty-rules.nix;
|
||||
opencode-agents-inline = ./agents-inline.nix;
|
||||
opencode-commands-inline = ./commands-inline.nix;
|
||||
|
|
|
|||
11
tests/modules/programs/opencode/rules-path.nix
Normal file
11
tests/modules/programs/opencode/rules-path.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
rules = ./AGENTS.md;
|
||||
};
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/opencode/AGENTS.md
|
||||
assertFileContent home-files/.config/opencode/AGENTS.md \
|
||||
${./AGENTS.md}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue