From dc11ce585f0487da095374edf9e3285b1208089a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 10 Oct 2010 11:14:02 +0000 Subject: [PATCH] Making vixie cron have the usual enable/disable nixos service option. svn path=/nixos/trunk/; revision=24198 --- modules/services/scheduling/cron.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/scheduling/cron.nix b/modules/services/scheduling/cron.nix index c6af4995079e..04c85eecf747 100644 --- a/modules/services/scheduling/cron.nix +++ b/modules/services/scheduling/cron.nix @@ -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.