diff --git a/modules/services/scheduling/cron.nix b/modules/services/scheduling/cron.nix index c6af4995079..04c85eecf74 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.