OpenClaw: integrate in dotfiles flake, secrets from files
- Add nix-openclaw to flake; OpenClaw config in home/danny/openclaw.nix - Gateway token from ~/.secrets/openclaw-gateway-token via wrapper script - Telegram allowFrom from gitignored openclaw-allow-from.nix (example committed) - openclaw-documents (AGENTS.md, SOUL.md, TOOLS.md) for workspace - AGENTS.md: note OpenClaw config location and apply command Made-with: Cursor
This commit is contained in:
parent
9519804cc6
commit
703720da96
10 changed files with 244 additions and 10 deletions
9
nixos/home/danny/openclaw-gateway-wrapper.sh
Normal file
9
nixos/home/danny/openclaw-gateway-wrapper.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
# Load OPENCLAW_GATEWAY_TOKEN from a file and exec the real gateway.
|
||||
# Install: token in ~/.secrets/openclaw-gateway-token (one line, no newline).
|
||||
set -euo pipefail
|
||||
TOKEN_FILE="${OPENCLAW_GATEWAY_TOKEN_FILE:-$HOME/.secrets/openclaw-gateway-token}"
|
||||
if [ -f "$TOKEN_FILE" ]; then
|
||||
export OPENCLAW_GATEWAY_TOKEN=$(cat "$TOKEN_FILE")
|
||||
fi
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue