From c98de25647c8872263238bf190e812c851aa25b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 11 Feb 2026 13:31:41 +0100 Subject: [PATCH] home: add labmcp service, remove zls, add .mcp.json Co-Authored-By: Claude Opus 4.5 --- .mcp.json | 33 +++++++++++++++++++++++++++++++++ home/editor/neovim/default.nix | 1 - home/hosts/gunter/default.nix | 1 + home/hosts/magicman/default.nix | 1 + home/services/labmcp.nix | 6 ++++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .mcp.json create mode 100644 home/services/labmcp.nix diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..fa88f45 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,33 @@ +{ + "mcpServers": { + "nixpkgs-options": { + "command": "nix", + "args": ["run", "git+https://git.t-juice.club/torjus/labmcp#nixpkgs-search", "--", "options", "serve"], + "env": { + "NIXPKGS_SEARCH_DATABASE": "sqlite:///run/user/1000/labmcp/nixpkgs-search.db" + } + }, + "nixpkgs-packages": { + "command": "nix", + "args": ["run", "git+https://git.t-juice.club/torjus/labmcp#nixpkgs-search", "--", "packages", "serve"], + "env": { + "NIXPKGS_SEARCH_DATABASE": "sqlite:///run/user/1000/labmcp/nixpkgs-search.db" + } + }, + "hm-options": { + "command": "nix", + "args": ["run", "git+https://git.t-juice.club/torjus/labmcp#hm-options", "--", "serve"], + "env": { + "HM_OPTIONS_DATABASE": "sqlite:///run/user/1000/labmcp/hm-options.db" + } + }, + "git-explorer": { + "command": "nix", + "args": ["run", "git+https://git.t-juice.club/torjus/labmcp#git-explorer", "--", "serve"], + "env": { + "GIT_REPO_PATH": "/home/torjus/git/nixos-servers" + } + } + } +} + diff --git a/home/editor/neovim/default.nix b/home/editor/neovim/default.nix index 5f9bac6..5c37f7b 100644 --- a/home/editor/neovim/default.nix +++ b/home/editor/neovim/default.nix @@ -64,7 +64,6 @@ yaml-language-server lua-language-server clang-tools - zls ruff ]; home.sessionVariables.EDITOR = "nvim"; diff --git a/home/hosts/gunter/default.nix b/home/hosts/gunter/default.nix index c7a0bb1..71efd22 100644 --- a/home/hosts/gunter/default.nix +++ b/home/hosts/gunter/default.nix @@ -33,6 +33,7 @@ ../../services/backup-home.nix ../../services/ghettoptt.nix ../../services/natstonotify.nix + ../../services/labmcp.nix ../../sops ../../ssh ../../zsh diff --git a/home/hosts/magicman/default.nix b/home/hosts/magicman/default.nix index 174decc..cc802ab 100644 --- a/home/hosts/magicman/default.nix +++ b/home/hosts/magicman/default.nix @@ -18,6 +18,7 @@ imports = [ inputs.sops-nix.homeManagerModules.sops ../../sops + ../../services/labmcp.nix ../../editor/neovim ../../programs/firefox ../../programs/tmux diff --git a/home/services/labmcp.nix b/home/services/labmcp.nix new file mode 100644 index 0000000..fcec978 --- /dev/null +++ b/home/services/labmcp.nix @@ -0,0 +1,6 @@ +{ + # Ensure runtime directory exists for labmcp MCP servers + systemd.user.tmpfiles.rules = [ + "d %t/labmcp 0755 - - -" + ]; +}