fix: silence nix evaluation warnings for neovim/opencode/system

This commit is contained in:
m3tm3re
2026-04-13 19:18:25 +02:00
parent fa608ae399
commit 55aac2c910
3 changed files with 87 additions and 68 deletions

View File

@@ -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;
} }

View File

@@ -1,4 +1,8 @@
{inputs, ...}: { {
inputs,
lib,
...
}: {
coding.agents.opencode = { coding.agents.opencode = {
enable = true; enable = true;
agentsInput = inputs.agents; agentsInput = inputs.agents;
@@ -17,8 +21,45 @@
coding.opencode = { coding.opencode = {
enable = true; enable = true;
ohMyOpencodeSettings = {
agents = {
sisyphus.model = "litellm/claude-opus-4-6";
oracle.model = "litellm/claude-sonnet-4-6";
librarian.model = "litellm/claude-sonnet-4-6";
explore.model = "litellm/claude-haiku-4-5";
multimodal-looker.model = "litellm/gpt-5.3-codex";
prometheus.model = "litellm/claude-opus-4-6";
metis.model = "litellm/claude-opus-4-6";
momus.model = "litellm/claude-opus-4-6";
atlas.model = "litellm/claude-sonnet-4-6";
};
categories = {
visual-engineering.model = "zai-coding-plan/glm-5.1";
ultrabrain.model = "litellm/claude-opus-4-6";
deep.model = "litellm/claude-sonnet-4-6";
artistry.model = "zai-coding-plan/glm-5.1";
quick.model = "litellm/claude-haiku-4-5";
unspecified-low.model = "litellm/claude-sonnet-4-6";
unspecified-high.model = "litellm/claude-opus-4-6";
writing.model = "zai-coding-plan/glm-5.1";
};
};
};
# 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 # AZ-Gruppe LiteLLM endpoint + available models
extraSettings = {
provider = { provider = {
litellm = { litellm = {
npm = "@ai-sdk/openai-compatible"; npm = "@ai-sdk/openai-compatible";
@@ -82,29 +123,4 @@
}; };
}; };
}; };
ohMyOpencodeSettings = {
agents = {
sisyphus.model = "litellm/claude-opus-4-6";
oracle.model = "litellm/claude-sonnet-4-6";
librarian.model = "litellm/claude-sonnet-4-6";
explore.model = "litellm/claude-haiku-4-5";
multimodal-looker.model = "litellm/gpt-5.3-codex";
prometheus.model = "litellm/claude-opus-4-6";
metis.model = "litellm/claude-opus-4-6";
momus.model = "litellm/claude-opus-4-6";
atlas.model = "litellm/claude-sonnet-4-6";
};
categories = {
visual-engineering.model = "zai-coding-plan/glm-5.1";
ultrabrain.model = "litellm/claude-opus-4-6";
deep.model = "litellm/claude-sonnet-4-6";
artistry.model = "zai-coding-plan/glm-5.1";
quick.model = "litellm/claude-haiku-4-5";
unspecified-low.model = "litellm/claude-sonnet-4-6";
unspecified-high.model = "litellm/claude-opus-4-6";
writing.model = "zai-coding-plan/glm-5.1";
};
};
};
} }

View File

@@ -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;
}; };
}; };