3
0
Fork 0
forked from mirrors/nixpkgs

Making vixie cron have the usual enable/disable nixos service option.

svn path=/nixos/trunk/; revision=24198
This commit is contained in:
Lluís Batlle i Rossell 2010-10-10 11:14:02 +00:00
parent 70a2ad7898
commit dc11ce585f

View file

@ -33,6 +33,11 @@ in
services.cron = {
enable = mkOption {
default = true;
description = "Whether to enable the `vixie cron' daemon.";
};
mailto = mkOption {
default = "";
description = " The job output will be mailed to this email address. ";
@ -63,7 +68,7 @@ in
###### implementation
config = {
config = mkIf config.services.cron.enable {
environment.etc = singleton
# The system-wide crontab.