From 1e666c10fa45bacfaa137e3810801e61c7266c3f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 20 Sep 2012 16:54:46 -0400 Subject: [PATCH] Get rid of the last use of mkThenElse --- modules/services/monitoring/nagios/default.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/services/monitoring/nagios/default.nix b/modules/services/monitoring/nagios/default.nix index 6d2fe3f2ace..ddb0da21327 100644 --- a/modules/services/monitoring/nagios/default.nix +++ b/modules/services/monitoring/nagios/default.nix @@ -184,12 +184,7 @@ in ''; }; - services.httpd = mkIf cfg.enableWebInterface { - extraConfig = mkThenElse { - thenPart = extraHttpdConfig; - elsePart = ""; - }; - }; + services.httpd.extraConfig = optionalString cfg.enableWebInterface extraHttpdConfig; };