Compare commits

...
2 Commits
Author SHA1 Message Date
artem d74de8b58c Move global tools to home config
Nix Flake Check / check (push) Successful in 54s
2026-07-19 17:10:45 +00:00
artem 12adcfed1c Initial opencode config 2026-07-19 17:10:20 +00:00
3 changed files with 84 additions and 9 deletions
+9
View File
@@ -20,6 +20,15 @@ in
"$HOME/.antigravity-server" "$HOME/.antigravity-server"
]; ];
home.packages = with pkgs; [
sshfs
nixd
home-assistant-cli
yt-dlp
attic-client
opencode
];
systemd.user.mounts."${haremote-unit}" = { systemd.user.mounts."${haremote-unit}" = {
Unit = { Unit = {
Description = "Mount ${haremote-path}"; Description = "Mount ${haremote-path}";
-9
View File
@@ -24,15 +24,6 @@
programs.fuse.enable = true; # for ~/src/haremote mount programs.fuse.enable = true; # for ~/src/haremote mount
environment.systemPackages = with pkgs; [
# TODO: move below into hosts/deimos/home.nix
sshfs
nixd
home-assistant-cli
yt-dlp
attic-client
];
# For building RPi configs. Extra steps are handled by the host (nas). # For building RPi configs. Extra steps are handled by the host (nas).
# https://discuss.linuxcontainers.org/t/systemd-binfmt-service-is-masked/21566/4 # https://discuss.linuxcontainers.org/t/systemd-binfmt-service-is-masked/21566/4
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
+75
View File
@@ -0,0 +1,75 @@
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local-ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama",
"options": {
"baseURL": "http://ollama.home.arpa:11434/v1",
"apiKey": "ollama"
},
"models": {
"gemma4:26b": {
"limit": {
"context": 48000,
"output": 8192
},
"tools": true
}
}
}
},
"model": "local-ollama/gemma4:26b",
"compaction": {
"auto": true,
"prune": true,
"threshold": 0.75,
"preserve_recent_tokens": 16384,
"reserved": 8192
},
"tool_output": {
"max_bytes": 16384,
"max_lines": 200
},
"mcp": {
"nix": {
"type": "local",
"command": [
"nix",
"run",
"github:utensils/mcp-nixos",
"--"
],
"enabled": true
},
"gitea": {
"type": "local",
"command": [
"nix",
"run",
"nixpkgs#gitea-mcp-server",
"--"
],
"enabled": true
},
"ha": {
"type": "local",
"command": [
"nix",
"shell",
"nixpkgs#uv",
"nixpkgs#python3",
"--command",
"uv",
"tool",
"run",
"ha-mcp"
],
"environment": {
"UV_PYTHON_DOWNLOADS": "never",
"UV_PYTHON_PREFERENCE": "system"
},
"enabled": true
}
}
}