lorri: restart notifications if events stream is disconnected

Before this patch, when events stream got disconnected (maybe because a
home rebuild), lorri-notify service wouldn't auto-restart.

@moduon MT-1075
This commit is contained in:
Jairo Llopis
2025-10-24 11:40:27 +01:00
committed by Austin Horstman
parent b652e703f1
commit d9ded14b74

View File

@@ -112,6 +112,7 @@ in
'';
notifyScript = pkgs.writeShellScript "lorri-notify" ''
set -o pipefail
lorri internal stream-events --kind live \
| jq --unbuffered -r '${jqFile}' \
| while IFS=$'\t' read -r status nixFile icon; do