fix/evaluation-warnings-opencode-neovim #3
3
.gitignore
vendored
3
.gitignore
vendored
@@ -40,3 +40,6 @@ opencode.json
|
|||||||
|
|
||||||
# Pi project-local packages (if using pi install -l)
|
# Pi project-local packages (if using pi install -l)
|
||||||
.pi/npm/
|
.pi/npm/
|
||||||
|
|
||||||
|
# Pi Lens local cache/runtime artifacts
|
||||||
|
.pi-lens/
|
||||||
|
|||||||
38
flake.lock
generated
38
flake.lock
generated
@@ -26,14 +26,17 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775879794,
|
"lastModified": 1776092721,
|
||||||
"narHash": "sha256-4BN5pGaEXREaDi2uZ8hU8nROUZr4ps9TwkN3eb/wMIo=",
|
"narHash": "sha256-avV4Snqp0K57I9s8D61+GHlg9DYZFSIvjaS4d4RYpG8=",
|
||||||
"path": "/home/m3tam3re/p/AI/AGENTS",
|
"ref": "refs/heads/master",
|
||||||
"type": "path"
|
"rev": "0ad41acb03eee0e22cba611b2171a3d3ee30cb10",
|
||||||
|
"revCount": 72,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://code.m3ta.dev/m3tam3re/AGENTS"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/home/m3tam3re/p/AI/AGENTS",
|
"type": "git",
|
||||||
"type": "path"
|
"url": "https://code.m3ta.dev/m3tam3re/AGENTS"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base16-schemes": {
|
"base16-schemes": {
|
||||||
@@ -429,14 +432,17 @@
|
|||||||
"openspec": "openspec"
|
"openspec": "openspec"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775881067,
|
"lastModified": 1776099116,
|
||||||
"narHash": "sha256-PutNWyXD08PmouVLZBksCLcywHowUE/YrVTNs5Rr6Ls=",
|
"narHash": "sha256-2Mg1ZVXJSLbNFvpzk2pmkc768pRMXLSJJAOqLdQ65Qg=",
|
||||||
"path": "/home/m3tam3re/p/NIX/nixpkgs",
|
"ref": "refs/heads/master",
|
||||||
"type": "path"
|
"rev": "613e9223e4ffb6cca721d5f6dc5ff0d95ab8993c",
|
||||||
|
"revCount": 225,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/home/m3tam3re/p/NIX/nixpkgs",
|
"type": "git",
|
||||||
"type": "path"
|
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nix-colors": {
|
"nix-colors": {
|
||||||
@@ -776,16 +782,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775461158,
|
"lastModified": 1775782812,
|
||||||
"narHash": "sha256-FiQzBj3C0sAnKU+WMktliqt0zM3YQDrgQbner1LOTi8=",
|
"narHash": "sha256-m+Ue7FWiTjKMAn1QefAwOMfOb2Vybk0mJPV9zcbkOmE=",
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"rev": "517e6c9aa4c61dbc125e7654fc596f1d529f20d9",
|
"rev": "877be7e8e04142cd8fbebcb5e6c4b9617bf28cce",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"ref": "v1.3.17",
|
"ref": "v1.4.3",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{inputs, ...}: {
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
coding.agents.opencode = {
|
coding.agents.opencode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
agentsInput = inputs.agents;
|
agentsInput = inputs.agents;
|
||||||
@@ -17,72 +21,6 @@
|
|||||||
coding.opencode = {
|
coding.opencode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# AZ-Gruppe LiteLLM endpoint + available models
|
|
||||||
extraSettings = {
|
|
||||||
provider = {
|
|
||||||
litellm = {
|
|
||||||
npm = "@ai-sdk/openai-compatible";
|
|
||||||
name = "LiteLLM (AZ-Gruppe)";
|
|
||||||
options.baseURL = "https://llm.az-gruppe.com/v1";
|
|
||||||
models = {
|
|
||||||
"gpt-5.2" = {
|
|
||||||
name = "GPT-5.2";
|
|
||||||
limit = {
|
|
||||||
context = 400000;
|
|
||||||
output = 128000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"gpt-5.3-codex" = {
|
|
||||||
name = "GPT-5.3 Codex";
|
|
||||||
limit = {
|
|
||||||
context = 400000;
|
|
||||||
output = 128000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"claude-haiku-4-5" = {
|
|
||||||
name = "Claude Haiku 4.5";
|
|
||||||
options = {
|
|
||||||
thinking = {
|
|
||||||
type = "enabled";
|
|
||||||
budget_tokens = 16000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
limit = {
|
|
||||||
context = 200000;
|
|
||||||
output = 64000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"claude-sonnet-4-6" = {
|
|
||||||
name = "Claude Sonnet 4.6";
|
|
||||||
options = {
|
|
||||||
thinking = {
|
|
||||||
type = "enabled";
|
|
||||||
budget_tokens = 16000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
limit = {
|
|
||||||
context = 200000;
|
|
||||||
output = 64000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"claude-opus-4-6" = {
|
|
||||||
name = "Claude Opus 4.6";
|
|
||||||
options = {
|
|
||||||
thinking = {
|
|
||||||
type = "enabled";
|
|
||||||
budget_tokens = 16000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
limit = {
|
|
||||||
context = 200000;
|
|
||||||
output = 128000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ohMyOpencodeSettings = {
|
ohMyOpencodeSettings = {
|
||||||
agents = {
|
agents = {
|
||||||
sisyphus.model = "litellm/claude-opus-4-6";
|
sisyphus.model = "litellm/claude-opus-4-6";
|
||||||
@@ -107,4 +45,82 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Keep TUI settings in programs.opencode.tui to satisfy OpenCode v1.2.15+.
|
||||||
|
programs.opencode.tui.theme = "opencode";
|
||||||
|
|
||||||
|
# Override legacy default settings to avoid deprecated TUI keys in settings.
|
||||||
|
programs.opencode.settings = lib.mkForce {
|
||||||
|
plugin = ["oh-my-openagent"];
|
||||||
|
formatter = {
|
||||||
|
alejandra = {
|
||||||
|
command = ["alejandra" "-q" "-"];
|
||||||
|
extensions = [".nix"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# AZ-Gruppe LiteLLM endpoint + available models
|
||||||
|
provider = {
|
||||||
|
litellm = {
|
||||||
|
npm = "@ai-sdk/openai-compatible";
|
||||||
|
name = "LiteLLM (AZ-Gruppe)";
|
||||||
|
options.baseURL = "https://llm.az-gruppe.com/v1";
|
||||||
|
models = {
|
||||||
|
"gpt-5.2" = {
|
||||||
|
name = "GPT-5.2";
|
||||||
|
limit = {
|
||||||
|
context = 400000;
|
||||||
|
output = 128000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"gpt-5.3-codex" = {
|
||||||
|
name = "GPT-5.3 Codex";
|
||||||
|
limit = {
|
||||||
|
context = 400000;
|
||||||
|
output = 128000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"claude-haiku-4-5" = {
|
||||||
|
name = "Claude Haiku 4.5";
|
||||||
|
options = {
|
||||||
|
thinking = {
|
||||||
|
type = "enabled";
|
||||||
|
budget_tokens = 16000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
limit = {
|
||||||
|
context = 200000;
|
||||||
|
output = 64000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"claude-sonnet-4-6" = {
|
||||||
|
name = "Claude Sonnet 4.6";
|
||||||
|
options = {
|
||||||
|
thinking = {
|
||||||
|
type = "enabled";
|
||||||
|
budget_tokens = 16000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
limit = {
|
||||||
|
context = 200000;
|
||||||
|
output = 64000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"claude-opus-4-6" = {
|
||||||
|
name = "Claude Opus 4.6";
|
||||||
|
options = {
|
||||||
|
thinking = {
|
||||||
|
type = "enabled";
|
||||||
|
budget_tokens = 16000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
limit = {
|
||||||
|
context = 200000;
|
||||||
|
output = 128000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
# You should not change this value, even if you update Home Manager. If you do
|
# You should not change this value, even if you update Home Manager. If you do
|
||||||
# want to update the value, then make sure to first check the Home Manager
|
# want to update the value, then make sure to first check the Home Manager
|
||||||
# release notes.
|
# release notes.
|
||||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
home.stateVersion = "26.05"; # Updated to adopt HM 26.05 defaults.
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
# You should not change this value, even if you update Home Manager. If you do
|
# You should not change this value, even if you update Home Manager. If you do
|
||||||
# want to update the value, then make sure to first check the Home Manager
|
# want to update the value, then make sure to first check the Home Manager
|
||||||
# release notes.
|
# release notes.
|
||||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
home.stateVersion = "26.05"; # Updated to adopt HM 26.05 defaults.
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
extraServices = {
|
extraServices = {
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
ollama.enable = true;
|
ollama.enable = false;
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
virtualisation.enable = true;
|
virtualisation.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
temp-packages = final: _prev: {
|
temp-packages = final: _prev: {
|
||||||
temp = import inputs.nixpkgs-9e9486b {
|
temp = import inputs.nixpkgs-9e9486b {
|
||||||
system = final.system;
|
system = final.stdenv.hostPlatform.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user