From a59bc22cc0872516fb16602f37968795d6bf4637 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 4 Nov 2021 08:25:48 +0100 Subject: [PATCH] handle recurrenc in taskwarrior pushover script --- nixos/modules/services/taskwarrior-pushover.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/services/taskwarrior-pushover.nix b/nixos/modules/services/taskwarrior-pushover.nix index 365e842..09e7fc9 100644 --- a/nixos/modules/services/taskwarrior-pushover.nix +++ b/nixos/modules/services/taskwarrior-pushover.nix @@ -93,6 +93,11 @@ in | ${pkgs.curl}/bin/curl -sS -X POST -H 'Content-Type: application/json' -d @- \ "https://api.pushover.net/1/messages.json" done + + if [[ ${cfg.recurrence} -eq on ]] + then + ${taskwarriorCommand} sync + fi ''; }; systemd.timers.taskwarrior-pushover = {