From ddc5a7d7c5d0009420a35a97e96c7236e92a4897 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 18 Nov 2009 09:30:38 +0000 Subject: [PATCH] Oops, placed mkIf in the wrong place. Fixing svn path=/nixos/trunk/; revision=18402 --- modules/services/monitoring/monit.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/monitoring/monit.nix b/modules/services/monitoring/monit.nix index 118b329afc50..e51e6d1872a1 100644 --- a/modules/services/monitoring/monit.nix +++ b/modules/services/monitoring/monit.nix @@ -26,7 +26,7 @@ in }; }; - config = { + config = mkIf config.services.monit.enable { environment.etc = [ { source = pkgs.writeTextFile { @@ -37,7 +37,7 @@ in mode = "0400"; } ]; - jobs.monit = mkIf config.services.monit.enable { + jobs.monit = { description = "Monit system watcher"; startOn = config.services.monit.startOn;