old
1{den, ...}: {
2 den.aspects.develop.agents.crush = {
3 includes = [den.aspects.develop.agents];
4
5 persistHome = {config, ...}: {
6 directories = [
7 "${config.xdg.dataHome}/crush"
8 ];
9 };
10
11 hjem = {
12 config,
13 pkgs,
14 ...
15 }: {
16 packages = [pkgs.llm-agents.crush];
17
18 xdg.config.files."crush/crush.json" = {
19 generator = (pkgs.formats.json {}).generate "crush-config.json";
20 value = {
21 "$schema" = "${pkgs.llm-agents.crush}/share/crush/schema.json";
22 lsp = {
23 nix = {
24 command = "nixd";
25 };
26 };
27 mcp = {
28 deepwiki = {
29 type = "http";
30 url = "https://mcp.deepwiki.com/mcp";
31 };
32 };
33 };
34 };
35
36 xdg.config.files."crush/skills" = {
37 source = "${config.xdg.config.directory}/agents/skills";
38 };
39 };
40 };
41}