opencode config

This commit is contained in:
Daniel Bulant 2026-04-25 10:48:43 +02:00
parent 81a32d1f38
commit b038e2ff25
No known key found for this signature in database
3 changed files with 81 additions and 0 deletions

View file

@ -104,6 +104,7 @@ exec-once = fcitx5
exec-once = easyeffects --gapplication-service
exec-once = dms run
exec-once = voxtype daemon
exec-once = openrgb --startminimized
#$swaylock = swaylock --screenshots --clock --indicator --effect-blur 6x6 --fade-in 0.2 --ring-color 4e9dc2 --key-hl-color 71b0ce
$swaylock = hyprlock

View file

@ -0,0 +1,71 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "",
},
"enabled": true,
},
"firecrawl-mcp": {
"type": "local",
"command": ["bun", "x", "firecrawl-mcp"],
"environment": {
"FIRECRAWL_API_KEY": "",
},
},
},
"agent": {
"explore": {
"_model": "github-copilot/gpt-5-mini",
},
"title": {
"_model": "github-copilot/gpt-5-mini",
},
"summary": {
"_model": "github-copilot/gpt-5-mini",
},
},
"provider": {
"lmstudio": {
"npm": "@ai-sdk/openai-compatible",
"name": "LM Studio (local)",
"options": {
"baseURL": "http://127.0.0.1:8080/v1",
},
"models": {
"gemma-4-26B-A4B": {
"name": "Gemma 4 26B A4B",
"limit": {
"context": 100000,
"output": 8192,
},
},
"qwen3.6-35B-A3B": {
"name": "Qwen 3.6 35B A3B",
"limit": {
"context": 100000,
"output": 8192,
},
},
"qwen3.5-9B": {
"name": "Qwen 3.5 9B",
"limit": {
"context": 100000,
"output": 8192,
},
},
"qwen3.5-9B-sushi": {
"name": "Qwen 3.5 9B Sushi coder",
"limit": {
"context": 100000,
"output": 8192,
},
},
},
},
},
}

View file

@ -1,5 +1,7 @@
{
pkgs,
lib,
config,
...
}:
@ -113,7 +115,9 @@ in
];
services.llama-swap = {
enable = true;
openFirewall = true;
settings = {
# listen = "0.0.0.0:8080";
macros = {
llama = ''
${pkgs.lib.getExe' llama-cpp "llama-server"} \
@ -161,6 +165,11 @@ in
DynamicUser = pkgs.lib.mkForce false;
User = pkgs.lib.mkForce "dan";
Group = pkgs.lib.mkForce "users"; # or dan's primary group
ExecStart = lib.mkForce ''
${lib.getExe pkgs.llama-swap} --listen 0.0.0.0:${toString config.services.llama-swap.port} --config ${
(pkgs.formats.yaml { }).generate "config.yaml" config.services.llama-swap.settings
}
'';
};
};
hardware.nvidia = {