mio-ops/profiles/cron-craige.nix
2021-03-03 15:52:21 +10:00

17 lines
436 B
Nix

# NixOps configuration for Craige's cron jobs
{ config, pkgs, ... }:
{
services.cron = {
enable = true; # Enable cron service
systemCronJobs = [
# Taskwarrior syncing
"*/5 * * * * craige /run/current-system/sw/bin/task sync >> /home/craige/.tasksync.log 2>&1"
"*/5 * * * * craige /run/current-system/sw/bin/task rc:~/.taskrc_obair sync >> /home/craige/.tasksync_obair.log 2>&1"
];
};
}