Use /srv/mcp/mcp-agent binary instead of Nix flake input

The agent binary is now managed by the operator (scp + install to
/srv/mcp/mcp-agent), not by the Nix flake. This allows agent upgrades
without a full NixOS rebuild.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 16:12:51 -07:00
parent 59ac363c45
commit 34b2a01f1a

View File

@@ -2,7 +2,7 @@
# #
# Creates a dedicated 'mcp' system user with rootless podman support # Creates a dedicated 'mcp' system user with rootless podman support
# and a systemd service for the agent daemon. # and a systemd service for the agent daemon.
{ pkgs, inputs, ... }: { pkgs, ... }:
let let
mcpUid = 995; mcpUid = 995;
@@ -29,7 +29,7 @@ in
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStart = "${inputs.mcp.packages.x86_64-linux.mcp-agent}/bin/mcp-agent server --config /srv/mcp/mcp-agent.toml"; ExecStart = "/srv/mcp/mcp-agent server --config /srv/mcp/mcp-agent.toml";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 5; RestartSec = 5;