From f99928c954c3f25a82829845facbe1610fca3569 Mon Sep 17 00:00:00 2001 From: joshashtondev Date: Tue, 22 Sep 2026 13:35:10 -0600 Subject: [PATCH] =?UTF-8?q?nixos:=20gen=2066=20@=20lilac=20=E2=80=94=20202?= =?UTF-8?q?6-09-22=2013:35=2026.05.20260918.cf9d2fb=20(Yarara)=20-----=20c?= =?UTF-8?q?onfiguring=20opencode=20to=20use=20on-device=20AI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/jashton.nix | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/home/jashton.nix b/home/jashton.nix index 7b16d76..975b696 100644 --- a/home/jashton.nix +++ b/home/jashton.nix @@ -52,7 +52,6 @@ in kicad libreoffice librewolf - opencode pdftk picom prismlauncher @@ -83,7 +82,7 @@ in (pkgs.writeShellScriptBin "jbuild" '' set -euo pipefail if [ $# -lt 1 ]; then - echo "usage: jrun [args...]" >&2 + echo "usage: jbuild [args...]" >&2 exit 1 fi @@ -261,6 +260,30 @@ in }; }; + programs.opencode = { + enable = true; + + settings = { + provider = { + ollama = { + npm = "@ai-sdk/openai-compatible"; + name = "Ollama (Local)"; + options = { + baseURL = "http://localhost:11434/v1"; + }; + models = { + "qwen3-coder-next:q4_K_M" = { + name = "Qwen3 Coder Next"; + }; + "qwen3.6:35b-a3b-q4_K_M" = { + name = "Qwen3.6 35B Thinker"; + }; + }; + }; + }; + }; + }; + programs.ssh = { enable = true; enableDefaultConfig = false;