fix: silence nix evaluation warnings for neovim/opencode/system
This commit is contained in:
@@ -53,4 +53,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
colorScheme = inputs.nix-colors.colorSchemes.dracula;
|
colorScheme = inputs.nix-colors.colorSchemes.dracula;
|
||||||
|
|
||||||
|
# Explicitly set new HM 26.05 default to silence legacy warning on older stateVersion.
|
||||||
|
programs.neovim.withRuby = lib.mkDefault false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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