programs.claude-code.rules

Home-Manager option

attribute set of (strings concatenated with "\n" or absolute path)

Modular rule files for Claude Code. The attribute name becomes the rule filename, and the value is either: - Inline content as a string - A path to a file containing the rule content Rules are stored in the rules/ subdirectory of programs.claude-code.configDir. All markdown files in that directory are automatically loaded as project memory.

type: attribute set of (strings concatenated with "\n" or absolute path)
Default
{ }
Example
{ code-style = '' # Code Style Guidelines - Use consistent formatting - Follow language conventions ''; testing = '' # Testing Conventions - Write tests for all new features - Maintain test coverage above 80% ''; security = ./rules/security.md; }
declared in: <home-manager/modules/programs/claude-code/options.nix>source unavailable