mio-ops/profiles/cron-craige.nix

16 lines
436 B
Nix
Raw Permalink Normal View History

2020-10-10 04:10:55 +00:00
# NixOps configuration for Craige's cron jobs
{
2022-03-07 14:26:15 +00:00
config,
pkgs,
...
}: {
2020-10-10 04:10:55 +00:00
services.cron = {
2021-11-16 04:57:23 +00:00
enable = true; # Enable cron service
2020-10-10 04:10:55 +00:00
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"
];
};
}