[Nix-dev] Setting up crontab as nixos user

Damien Cassou damien.cassou at gmail.com
Mon Sep 1 08:10:19 CEST 2014


Hi,

how can nixos users (not the nixos system, but simple users) specify
cron jobs? If a user writes:

$ crontab -e

then he is presented with a file that has this warning:

DO NOT EDIT THIS FILE - edit the master and reinstall.

If the user modifies the file nonetheless, cron will never run the
added jobs. I tried with:

*/1 * * * * date >> /tmp/crontest.txt

and the file crontest.txt never contains any date.

If the user creates its own crontab file and then registers it, it won't work:

$ crontab /tmp/my.cron
cannot chdir(/var/cron), bailing out.
/var/cron: Permission denied


Can you please tell me how simple users can register jobs on nixos?

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill


More information about the nix-dev mailing list