diff --git a/machine/empyrean/sync-pipeline.nix b/machine/empyrean/sync-pipeline.nix index 30c4db0..92742fd 100644 --- a/machine/empyrean/sync-pipeline.nix +++ b/machine/empyrean/sync-pipeline.nix @@ -60,10 +60,10 @@ let # Script for cron jobs that sends output to journalctl -t sync-pipeline sibd-cron = prefix: src: dest: pkgs.writeShellScript "sibd-cron" '' - ${systemd}/bin/systemd-cat -t sync-pipeline ${sibd}/bin/sort-images-by-date ${prefix} ${src} ${dest} + ${pkgs.systemd}/bin/systemd-cat -t sync-pipeline ${sibd}/bin/sort-images-by-date ${prefix} ${src} ${dest} ''; in { - environment.systemPackages = [ sort-images-by-date ]; + environment.systemPackages = [ sibd ]; services.cron = { enable = true; @@ -71,4 +71,5 @@ in { "0 0 * * 1 tvb ${sibd-cron "nokia" "/home/tvb/phone-sync/DCIM" "/home/tvb/phone-sync/staging"}" "0 0 * * 1 tvb ${sibd-cron "nokia" "/home/tvb/phone-sync/Pictures" "/home/tvb/phone-sync/staging"}" ]; + }; }