nixos: gen 66 @ lilac — 2026-09-22 13:35 26.05.20260918.cf9d2fb (Yarara) ----- configuring opencode to use on-device AI

This commit is contained in:
2026-09-22 13:35:10 -06:00
parent 284a084ca5
commit f99928c954
+25 -2
View File
@@ -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 <package.MainClass> [args...]" >&2
echo "usage: jbuild <package.MainClass> [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;