Oops, placed mkIf in the wrong place. Fixing

svn path=/nixos/trunk/; revision=18402
This commit is contained in:
Michael Raskin 2009-11-18 09:30:38 +00:00
parent a94da97354
commit ddc5a7d7c5

View File

@ -26,7 +26,7 @@ in
}; };
}; };
config = { config = mkIf config.services.monit.enable {
environment.etc = [ environment.etc = [
{ {
source = pkgs.writeTextFile { source = pkgs.writeTextFile {
@ -37,7 +37,7 @@ in
mode = "0400"; mode = "0400";
} }
]; ];
jobs.monit = mkIf config.services.monit.enable { jobs.monit = {
description = "Monit system watcher"; description = "Monit system watcher";
startOn = config.services.monit.startOn; startOn = config.services.monit.startOn;