mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
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:
committed by
Austin Horstman
parent
b652e703f1
commit
d9ded14b74
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user