Files

31 lines
955 B
Desktop File
Raw Permalink Normal View History

[Unit]
Description=write.famzheng.me — voice/text → claude → markdown doc
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/home/fam/.local/bin/write
Restart=on-failure
RestartSec=5
# Env: required + optional
EnvironmentFile=/home/fam/.config/write/env
Environment=PORT=31391
Environment=WRITE_DOCS_DIR=/home/fam/.local/share/write/docs
Environment=WRITE_DB_PATH=/home/fam/.local/share/write/app.db
Environment=WRITE_DIST_DIR=/home/fam/.local/share/write/dist
Environment=WRITE_ASR_UPSTREAM=ws://cpc-i7:9000
Environment=WRITE_ASR_LANGUAGE=Chinese
Environment=WRITE_ASR_CHUNK_SIZE_SEC=1.0
Environment=WRITE_CLAUDE_BIN=/home/fam/.local/bin/claude
Environment=WRITE_CLAUDE_MODEL=sonnet
Environment=WRITE_CLAUDE_MAX_BUDGET_USD=2
Environment=RUST_LOG=info
StandardOutput=append:/home/fam/.local/state/write/write.log
StandardError=append:/home/fam/.local/state/write/write.log
[Install]
WantedBy=default.target