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
@ -33,6 +33,11 @@ in
|
|||||||
|
|
||||||
services.cron = {
|
services.cron = {
|
||||||
|
|
||||||
|
enable = mkOption {
|
||||||
|
default = true;
|
||||||
|
description = "Whether to enable the `vixie cron' daemon.";
|
||||||
|
};
|
||||||
|
|
||||||
mailto = mkOption {
|
mailto = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
description = " The job output will be mailed to this email address. ";
|
description = " The job output will be mailed to this email address. ";
|
||||||
@ -63,7 +68,7 @@ in
|
|||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = {
|
config = mkIf config.services.cron.enable {
|
||||||
|
|
||||||
environment.etc = singleton
|
environment.etc = singleton
|
||||||
# The system-wide crontab.
|
# The system-wide crontab.
|
||||||
|
Loading…
Reference in New Issue
Block a user