From 9360ae4543602b62aae8d99a4da72add46c630ee Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 18 May 2026 18:42:52 +0200 Subject: [PATCH 1/2] add nixos mcp server --- flake.lock | 8 +++---- hosts/rx4/services/open-webui-oci.nix | 31 ++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index da7918e..0f12baa 100644 --- a/flake.lock +++ b/flake.lock @@ -5199,11 +5199,11 @@ "stylix": "stylix_6" }, "locked": { - "lastModified": 1778016348, - "narHash": "sha256-C8PtC95r1KJync8qDEroIont1VT8tiwsjonYjwGLhbY=", + "lastModified": 1779122512, + "narHash": "sha256-fMhsa8ms/0mR6wmuc+Eoe3Lj31pFO1hcfiZvvCOFC2I=", "ref": "release-25.11", - "rev": "8ad8b1f633f6c3875032a0ead0e87255dff4ab3c", - "revCount": 57, + "rev": "896743958561cb191f4e4d738d823008126cf175", + "revCount": 83, "type": "git", "url": "https://git.sid.ovh/sid/synix.git" }, diff --git a/hosts/rx4/services/open-webui-oci.nix b/hosts/rx4/services/open-webui-oci.nix index 5c43197..506b5dc 100644 --- a/hosts/rx4/services/open-webui-oci.nix +++ b/hosts/rx4/services/open-webui-oci.nix @@ -2,12 +2,19 @@ inputs, constants, config, + lib, pkgs, ... }: +let + inherit (lib) getExe; +in { - imports = [ inputs.synix.nixosModules.open-webui-oci ]; + imports = [ + inputs.synix.nixosModules.open-webui-oci + inputs.synix.nixosModules.mcpo + ]; services.open-webui-oci = { enable = true; @@ -21,6 +28,28 @@ }; }; + services.mcpo = { + enable = true; + package = pkgs.synix.mcpo; + port = 8765; + settings = { + mcpServers = { + # fetcher-mcp = { + # command = getExe pkgs.synix.fetcher-mcp; + # url = "http://127.0.0.1:8001/fetcher-mcp"; + # }; + nixos = { + command = getExe pkgs.nix; + args = [ + "run" + "github:utensils/mcp-nixos" + "--" + ]; + }; + }; + }; + }; + # sops = { # secrets."open-webui-oci/stt-api-key" = { }; # secrets."open-webui-oci/tts-api-key" = { }; From 2b621988e485a2c3905de50778f2322eee0e6197 Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 18 May 2026 18:45:44 +0200 Subject: [PATCH 2/2] update synix input --- flake.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 0f12baa..b4c5943 100644 --- a/flake.lock +++ b/flake.lock @@ -5199,11 +5199,11 @@ "stylix": "stylix_6" }, "locked": { - "lastModified": 1779122512, - "narHash": "sha256-fMhsa8ms/0mR6wmuc+Eoe3Lj31pFO1hcfiZvvCOFC2I=", + "lastModified": 1779122723, + "narHash": "sha256-hEL93URxv2e1vhKxA++m0rszGgZUmWKKPFxa4t1LIi4=", "ref": "release-25.11", - "rev": "896743958561cb191f4e4d738d823008126cf175", - "revCount": 83, + "rev": "7d73c46b94fa6a7562b7b3ef300f39aa71734d26", + "revCount": 85, "type": "git", "url": "https://git.sid.ovh/sid/synix.git" },