summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-22 21:41:26 +0000
committertv <tv@krebsco.de>2026-11-22 23:47:20 +0000
commitefd0121c852e3ad7645b01d37a09a0e80efb2f2f (patch)
treeba97e27ee33a7c7e3d7e8fc3e3a5e675cb5f4631
parentbdfca5d43c188799361484876713d4229a508c14 (diff)
configs/claude: the remotes' sessions named by --name
claude remote-control --name NAME names its session in claude.ai, rather than CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX, the prefix of auto-generated names (NAME-...).
-rw-r--r--configs/claude.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/configs/claude.nix b/configs/claude.nix
index 0cbc1ae..dbea0de 100644
--- a/configs/claude.nix
+++ b/configs/claude.nix
@@ -151,9 +151,6 @@ in
DISABLE_ERROR_REPORTING = "1";
# The claude.ai account's connectors, via mcp-proxy.anthropic.com.
ENABLE_CLAUDEAI_MCP_SERVERS = "false";
- # Sessions named after the remote (NAME-...), rather than after the
- # host, which they all share.
- CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX = "%i";
};
serviceConfig = {
Type = "forking";
@@ -187,7 +184,9 @@ in
# As root (+), stateDir being root's.
"+${remember} %i"
];
- ExecStart = "${tmux "%i"} new-session -d -s claude -c /home/claude/remotes/%i ${lib.getExe pkgs.claude-code} remote-control";
+ # --name: its session named after the remote, rather than after the
+ # host, which they all share.
+ ExecStart = "${tmux "%i"} new-session -d -s claude -c /home/claude/remotes/%i ${lib.getExe pkgs.claude-code} remote-control --name %i";
ExecStopPost = "+${forget} %i";
Restart = "always";
RestartSec = 10;