feat: config with agents rework

This commit is contained in:
m3tm3re
2026-04-13 16:44:18 +02:00
parent ab3332e45b
commit 7bf686481c
6 changed files with 94 additions and 55 deletions

View File

@@ -25,6 +25,7 @@ in {
$env.FZF_DEFAULT_COMMAND = "fd --type f --exclude .git --follow --hidden"
$env.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh"
$env.PATH = ($env.PATH | split row (char esep) | append $"($env.HOME)/.cache/.bun/bin" | append $"($env.HOME)/.npm-global/bin" | uniq)
$env.NPM_CONFIG_PREFIX = $"($env.HOME)/.npm-global"
$env.FLAKE = $"($env.HOME)/p/NIX/nixos-config"
# Load kestractl-env from agenix

View File

@@ -1,10 +1,18 @@
{
config,
pkgs,
videoDrivers,
...
}: {
}: let
npmGlobalPrefix = "${config.home.homeDirectory}/.npm-global";
in {
home.file.".npmrc".text = ''
prefix=${npmGlobalPrefix}
'';
home.sessionVariables.NPM_CONFIG_PREFIX = npmGlobalPrefix;
imports = [
./opencode.nix
./pi.nix
];
programs.mcp = {
enable = true;

View File

@@ -1,5 +1,5 @@
{inputs, ...}: {
coding.opencode = {
coding.agents.opencode = {
enable = true;
agentsInput = inputs.agents;
@@ -12,6 +12,10 @@
{src = inputs.skills-basecamp;}
{src = inputs.skills-kestra;}
];
};
coding.opencode = {
enable = true;
# AZ-Gruppe LiteLLM endpoint + available models
extraSettings = {

View File

@@ -0,0 +1,31 @@
{inputs, ...}: {
coding.agents.pi = {
enable = true;
agentsInput = inputs.agents;
modelOverrides = {
chiron = "zai-coding-plan/glm-5.1";
chiron-forge = "zai-coding-plan/glm-5.1";
};
settings = {
packages = [
"npm:@thesethrose/pi-zai-provider"
"npm:pi-mcp-adapter"
"npm:pi-subagents"
"npm:pi-lens"
"npm:pi-web-access"
"npm:pi-prompt-template-model"
"npm:@plannotator/pi-extension"
"npm:pi-powerline-footer"
"npm:pi-markdown-preview"
];
defaultProvider = "zai";
defaultModel = "glm-5.1";
defaultThinkingLevel = "medium";
};
# MCP servers auto-inherited from programs.mcp in default.nix
};
}