add nixos mcp server
This commit is contained in:
parent
c31744739f
commit
9360ae4543
2 changed files with 34 additions and 5 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -5199,11 +5199,11 @@
|
||||||
"stylix": "stylix_6"
|
"stylix": "stylix_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778016348,
|
"lastModified": 1779122512,
|
||||||
"narHash": "sha256-C8PtC95r1KJync8qDEroIont1VT8tiwsjonYjwGLhbY=",
|
"narHash": "sha256-fMhsa8ms/0mR6wmuc+Eoe3Lj31pFO1hcfiZvvCOFC2I=",
|
||||||
"ref": "release-25.11",
|
"ref": "release-25.11",
|
||||||
"rev": "8ad8b1f633f6c3875032a0ead0e87255dff4ab3c",
|
"rev": "896743958561cb191f4e4d738d823008126cf175",
|
||||||
"revCount": 57,
|
"revCount": 83,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.sid.ovh/sid/synix.git"
|
"url": "https://git.sid.ovh/sid/synix.git"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,19 @@
|
||||||
inputs,
|
inputs,
|
||||||
constants,
|
constants,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
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 = {
|
services.open-webui-oci = {
|
||||||
enable = true;
|
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 = {
|
# sops = {
|
||||||
# secrets."open-webui-oci/stt-api-key" = { };
|
# secrets."open-webui-oci/stt-api-key" = { };
|
||||||
# secrets."open-webui-oci/tts-api-key" = { };
|
# secrets."open-webui-oci/tts-api-key" = { };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue