1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-24 18:00:58 +01:00
home-manager/tests/modules/programs/claude-code/rules-path.nix
Austin Horstman bb35f07cc9 tests/claude-code: add rules tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-12-19 13:19:35 -06:00

20 lines
441 B
Nix

{
programs.claude-code = {
enable = true;
rules = {
test-rule = ./test-rule.md;
inline-rule = ''
# Inline Rule
This is an inline rule for testing.
'';
};
};
nmt.script = ''
assertFileExists home-files/.claude/rules/test-rule.md
assertFileContent home-files/.claude/rules/test-rule.md \
${./test-rule.md}
assertFileExists home-files/.claude/rules/inline-rule.md
'';
}