From b038e2ff25c8403a6813dc9165eb8cc231ea1f78 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sat, 25 Apr 2026 10:48:43 +0200 Subject: [PATCH] opencode config --- .config/hypr/hyprland.conf | 1 + .config/opencode/opencode.jsonc | 71 +++++++++++++++++++++++++++++++++ servers/fern/configuration.nix | 9 +++++ 3 files changed, 81 insertions(+) create mode 100644 .config/opencode/opencode.jsonc diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 108ca7e..7bca069 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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 diff --git a/.config/opencode/opencode.jsonc b/.config/opencode/opencode.jsonc new file mode 100644 index 0000000..1fc38aa --- /dev/null +++ b/.config/opencode/opencode.jsonc @@ -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, + }, + }, + }, + }, + }, +} diff --git a/servers/fern/configuration.nix b/servers/fern/configuration.nix index ebde69b..4e47c43 100644 --- a/servers/fern/configuration.nix +++ b/servers/fern/configuration.nix @@ -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 = {