aboutsummaryrefslogtreecommitdiff
path: root/home-manager/opencode/default.nix
blob: c89822075540c3919c7e5a7defea64444fa96756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  programs.opencode = {
    enable = true;

    agents = {};
    commands = {};

    rules = "";

    settings = {
      provider = {
        ollama = {
          npm = "@ai-sdk/openai-compatible";
          name = "Ollama (local)";
          num_ctx = 16384;
          options = {
            baseURL = "http://localhost:11434/v1";
          };
          models = {
            "gpt-oss:20b" = {
              name = "gpt-oss:20b";
            };
          };
        };
      };
      autoshare = false;
      autoupdate = false;
    };
    
    themes = {};
  };
}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.