diff --git a/configs/mcp.nix b/configs/mcp.nix index 2b27c76..ceb0cad 100644 --- a/configs/mcp.nix +++ b/configs/mcp.nix @@ -2,7 +2,7 @@ # # Creates a dedicated 'mcp' system user with rootless podman support # and a systemd service for the agent daemon. -{ pkgs, ... }: +{ pkgs, inputs, ... }: let mcpUid = 995; @@ -29,7 +29,7 @@ in serviceConfig = { Type = "simple"; - ExecStart = "/usr/local/bin/mcp-agent server --config /srv/mcp/mcp-agent.toml"; + ExecStart = "${inputs.mcp.packages.x86_64-linux.mcp-agent}/bin/mcp-agent server --config /srv/mcp/mcp-agent.toml"; Restart = "on-failure"; RestartSec = 5; diff --git a/configs/mcpkg.nix b/configs/mcpkg.nix index 36f78b2..031d188 100644 --- a/configs/mcpkg.nix +++ b/configs/mcpkg.nix @@ -6,5 +6,6 @@ inputs.mcr.packages.x86_64-linux.default inputs.mc-proxy.packages.x86_64-linux.default inputs.mcdeploy.packages.x86_64-linux.default + inputs.mcp.packages.x86_64-linux.default ]; } diff --git a/flake.nix b/flake.nix index 4be16bd..436d0f2 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,9 @@ mcdeploy.url = "git+https://git@git.wntrmute.dev/kyle/mcdeploy"; mcdeploy.inputs.nixpkgs.follows = "nixpkgs"; + mcp.url = "git+ssh://git@git.wntrmute.dev/mc/mcp.git"; + mcp.inputs.nixpkgs.follows = "nixpkgs"; + # exo.url = "git+https://git.wntrmute.dev/kyle/exo"; # exo.inputs.nixpkgs.follows = "nixpkgs";