/ modules / home / programs / aichat.nix
aichat.nix
 1  {
 2    programs.aichat = {
 3      enable = true;
 4      settings = {
 5        stream = true;
 6        wrap = "auto";
 7        theme = "dark";
 8        wrap_code = true;
 9        highlight = true;
10        keybindings = "vi";
11        model = "ollama:gpt-oss:20b";
12  
13        clients = [
14          {
15            name = "ollama";
16            type = "openai-compatible";
17            api_base = "http://localhost:11434/v1";
18            models = [
19              {
20                name = "phind-codellama:34b";
21                supports_vision = true;
22                supports_function_calling = true;
23              }
24              {
25                name = "gpt-oss:20b";
26                supports_vision = true;
27                supports_function_calling = true;
28              }
29              {
30                name = "gpt-oss:120b";
31                supports_vision = true;
32                supports_function_calling = true;
33              }
34              {
35                name = "qwen2.5-coder:32b";
36                supports_vision = true;
37                supports_function_calling = true;
38              }
39              {
40                name = "llava:34b";
41                supports_vision = true;
42                supports_function_calling = true;
43              }
44              {
45                name = "mistral-small3.1:latest";
46                supports_vision = true;
47                supports_function_calling = true;
48              }
49            ];
50          }
51        ];
52      };
53    };
54  }