From 53302600871db7a8fecb20de993eb1de64395c82 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 26 Jul 2018 16:00:00 -0300 Subject: Output all mail cronjob logs to date-named file This way the file can get old and be garbage collected. --- nixos/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c82e334..07d424e 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -266,7 +266,7 @@ services = { cron.enable = true; - cron.systemCronJobs = ["* * * * * andreh mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log"]; + cron.systemCronJobs = ["* * * * * andreh mbsync -aV &>> /tmp/mbsync.$(date +%Y-%m-%d).log && notmuch new &>> /tmp/notmuch.$(date +%Y-%m-%d).log"]; xserver = { enable = true; -- cgit v1.2.3