Fix sleep timer
This commit is contained in:
parent
a07daf0f53
commit
87d788fb73
|
@ -168,7 +168,7 @@ in
|
|||
Unit.Description = "Watch maildir for changes for account ${name}";
|
||||
Service = {
|
||||
ExecStart = toString (pkgs.writeShellScript "watch-${name}-maildir" ''
|
||||
while sleep 1s; do
|
||||
while ${pkgs.coreutils}/bin/sleep 1s; do
|
||||
${quick-sync}
|
||||
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete -r ${maildir}/${name}/Inbox
|
||||
done
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
Service = {
|
||||
ExecStart = toString (
|
||||
pkgs.writeShellScript "watch-vdir" ''
|
||||
while sleep 1s; do
|
||||
while ${pkgs.coreutils}/bin/sleep 1s; do
|
||||
${pkgs.taskwarrior}/bin/task sync
|
||||
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete,modify -r ${config.home.homeDirectory}/.task
|
||||
done
|
||||
|
|
|
@ -84,7 +84,7 @@ in
|
|||
Service = {
|
||||
ExecStart = toString (
|
||||
pkgs.writeShellScript "watch-vdir" ''
|
||||
while sleep 1s; do
|
||||
while ${pkgs.coreutils}/bin/sleep 1s; do
|
||||
${pkgs.vdirsyncer}/bin/vdirsyncer sync
|
||||
${pkgs.inotify-tools}/bin/inotifywait -e move,create,delete,modify -r ${config.home.homeDirectory}/.contacts ${config.home.homeDirectory}/.calendars
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue