From b635d088ee3d391f445b46502272f66762161df1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 19 Aug 2026 10:11:31 -0400 Subject: flake: SLOPBOT_DIR override for the packaged runner; README says github:bsima/agentd --- README.md | 3 ++- flake.nix | 2 +- 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 -- cgit v1.2.3