Move error-reporter to imports section

master
Sven Slootweg 7 years ago
parent a2a7b42ed8
commit faf382ddc9

@ -4,6 +4,7 @@
let let
buildNode2nixPackage = (import ./build/node2nix-package.nix) args; buildNode2nixPackage = (import ./build/node2nix-package.nix) args;
errorReporter = (import ./node-error-reporter) args;
in let in let
serviceName = "node-${name}"; serviceName = "node-${name}";
cfg = config.services."${serviceName}"; cfg = config.services."${serviceName}";
@ -13,7 +14,6 @@
inherit src setupCommands; inherit src setupCommands;
}; };
errorReporter = (import ./node-error-reporter) args;
errorReporterModule = if hasErrorReporting then (errorReporter { errorReporterModule = if hasErrorReporting then (errorReporter {
application = application; application = application;
applicationName = name; applicationName = name;

Loading…
Cancel
Save