summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2026-08-19 10:11:31 -0400
committerBen Sima <ben@bensima.com>2026-08-19 10:11:31 -0400
commitb635d088ee3d391f445b46502272f66762161df1 (patch)
treeb999c6173f5ff1f967340aeb2af757f0d7d9b989
parentc6f85a29072a5d91505058dc6aee11a63afc3a04 (diff)
flake: SLOPBOT_DIR override for the packaged runner; README says github:bsima/agentdHEADmaster
-rw-r--r--README.md3
-rw-r--r--flake.nix2
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index a2b1e4a..e768bf9 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,8 @@ Get your `.zuliprc` from Zulip: Settings → Bots → your bot → download conf
- `.env.example` — operational defaults, including `KAGI_API_KEY`
- Regex: `\$([A-Z]{1,5})` — matches 1-5 uppercase letters after `$`
- Deduplicates tickers per message, replies in-place (same stream + topic)
-- `flake.nix` — packages slopbot with `agent` from `/home/ben/src/bsima/agentd` as a Nix input
+- `flake.nix` — packages slopbot with `agent` from `github:bsima/agentd` as a Nix input
+- `SLOPBOT_DIR` — working directory the packaged `slopbot` runs from (default `/home/ben/src/bsima/slopbot`)
## Extending
diff --git a/flake.nix b/flake.nix
index d1e7109..07fc0c9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -139,7 +139,7 @@ PY
packages.${system} = rec {
default = slopbot;
slopbot = pkgs.writeShellScriptBin "slopbot" ''
- cd /home/ben/src/bsima/slopbot
+ cd "''${SLOPBOT_DIR:-/home/ben/src/bsima/slopbot}"
export PATH=${slopTools}/bin
export SLOPBOT_AGENT=${agent}/bin/agent
export SLOPBOT_AGENT_PATH=${slopTools}/bin