claude-code: init module (#7685)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
567312006a
commit
8b4ac14968
14 changed files with 589 additions and 0 deletions
22
tests/modules/programs/claude-code/assertion.nix
Normal file
22
tests/modules/programs/claude-code/assertion.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
programs.claude-code = {
|
||||
enable = true;
|
||||
package = null;
|
||||
|
||||
mcpServers = {
|
||||
filesystem = {
|
||||
type = "stdio";
|
||||
command = "npx";
|
||||
args = [
|
||||
"-y"
|
||||
"@modelcontextprotocol/server-filesystem"
|
||||
"/tmp"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
test.asserts.assertions.expected = [
|
||||
"`programs.claude-code.package` cannot be null when `mcpServers` is configured"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue