diff options
-rw-r--r-- | bash/aliases.sh | 1 | ||||
-rw-r--r-- | nixos/configuration.nix | 3 | ||||
-rwxr-xr-x | scripts/mail.sh | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/bash/aliases.sh b/bash/aliases.sh index f9649a2..142b6a9 100644 --- a/bash/aliases.sh +++ b/bash/aliases.sh @@ -14,7 +14,6 @@ alias watch="watch " alias mr="mr -s" alias sbcl="rlwrap sbcl" alias du="ncdu --color dark" -alias mail="mbsync -a && notmuch new" alias fim="play $DOTFILES/bash/Positive.ogg &> /dev/null" diff --git a/nixos/configuration.nix b/nixos/configuration.nix index edd764b..7bfab11 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -290,7 +290,8 @@ services = { cron.enable = true; - cron.systemCronJobs = ["* * * * * andreh mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log"]; + # We can see the actual generated crontab at /etc/crontab + cron.systemCronJobs = ["* * * * * andreh /home/andreh/annex/dev/code/dotfiles/scripts/mail.sh"]; xserver = { enable = true; diff --git a/scripts/mail.sh b/scripts/mail.sh new file mode 100755 index 0000000..e9f14d8 --- /dev/null +++ b/scripts/mail.sh @@ -0,0 +1 @@ +mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log |