3a759559

By: ananjiani <ananjiani@noreply.codeberg.org>

fix(herdr): skip activation reload when server is stopped (#356)

## Summary

The status command exits 0 even when Herdr is not running. Check its JSON status before the Home Manager activation hook reloads Herdr.

```text
installReviewrPlugin
  read Herdr server status
  reload only when running == true
```

## Evidence

- **Before:** `nh home switch` failed with `server_not_running` because the hook reloaded a closed Herdr server.
  **After:** `nh home switch` completed with exit code 0 after this change.
- Shell checks reproduced the old bug and passed for closed server, live server, status failure, and reload failure.
- Commit hooks passed: nixfmt, statix, deadnix, secret scan, and whitespace checks.

## Merge Danger

**Door:** two-way. Revert the one-file guard change.

**Blast Radius:** activation.

Only the Herdr reload guard changes. Non-zero status and reload errors still stop activation.

Co-authored-by: Ammar <ammar.nanjiani@gmail.com>
Reviewed-on: https://codeberg.org/ananjiani/infra/pulls/356

Total

16m59s

Time to Start Worker time Duration Time to finish Idle
Config 1m40s 1s 1s 1m42s 1m40s
Eval 1m42s 8m49s 8m49s 10m32s 0s
Build 10m31s 12m28s 8m08s 18m40s 0s
Suite 1m40s 21m19s 16m59s 18m40s 1m41s

Timeline

Config Eval Build Compressed gap
0s2m3m4m5m6m7m8m9m10m11m12m13m14m15m16m17m18m