Making vixie cron have the usual enable/disable nixos service option.
svn path=/nixos/trunk/; revision=24198
This commit is contained in:
parent
70a2ad7898
commit
dc11ce585f
1 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue