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:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Creates a dedicated 'mcp' system user with rootless podman support
|
||||
# and a systemd service for the agent daemon.
|
||||
{ pkgs, inputs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
mcpUid = 995;
|
||||
@@ -29,7 +29,7 @@ in
|
||||
|
||||
serviceConfig = {
|
||||
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";
|
||||
RestartSec = 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user