mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 13:01:09 +01:00
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
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