From 491340bf93b12ddfb2c67e651920f1e0b2840f0b Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sun, 16 Aug 2026 18:51:16 +0000 Subject: [PATCH] Add crush --- hosts/deimos/home.nix | 1 + legacy/.config/crush/crush.json | 82 +++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 legacy/.config/crush/crush.json diff --git a/hosts/deimos/home.nix b/hosts/deimos/home.nix index 9dced1d..4666422 100644 --- a/hosts/deimos/home.nix +++ b/hosts/deimos/home.nix @@ -27,6 +27,7 @@ in yt-dlp attic-client opencode + crush ]; systemd.user.mounts."${haremote-unit}" = { diff --git a/legacy/.config/crush/crush.json b/legacy/.config/crush/crush.json new file mode 100644 index 0000000..f143b25 --- /dev/null +++ b/legacy/.config/crush/crush.json @@ -0,0 +1,82 @@ +{ + "$schema": "https://charm.land/crush.json", + "experimental": { "openTelemetry": false }, + "share": "disabled", + "autoupdate": false, + "disabled_providers": ["crush", "exa"], + "providers": { + "local-ollama": { + "type": "openai-compat", + "base_url": "http://ollama.home.arpa:11434/v1", + "api_key": "ollama", + "model_overrides": { + "gemma4-1gpu": { + "context_window": 48000, + "tools": true + }, + "qwen3.6-1gpu": { + "context_window": 128000, + "tools": true + } + } + } + }, + "model": "local-ollama/qwen3.6-200k", + "compaction": { + "auto": true, + "prune": true, + "threshold": 0.75, + "preserve_recent_tokens": 8192, + "reserved": 16384 + }, + "tool_output": { + "max_bytes": 16384, + "max_lines": 200 + }, + "agent": { + "build": { + "steps": 1000 + } + }, + "mcp": { + "nix": { + "type": "stdio", + "command": "nix", + "args": [ + "run", + "github:utensils/mcp-nixos", + "--" + ], + "enabled": true + }, + "gitea": { + "type": "stdio", + "command": "nix", + "args": [ + "run", + "nixpkgs#gitea-mcp-server", + "--" + ], + "enabled": false + }, + "ha": { + "type": "stdio", + "command": "nix", + "args": [ + "shell", + "nixpkgs#uv", + "nixpkgs#python3", + "--command", + "uv", + "tool", + "run", + "ha-mcp" + ], + "env": { + "UV_PYTHON_DOWNLOADS": "never", + "UV_PYTHON_PREFERENCE": "system" + }, + "enabled": false + } + } +}