|
|
@ -5,6 +5,7 @@
|
|
|
|
let
|
|
|
|
let
|
|
|
|
buildNode2nixPackage = (import ./build/node2nix-package.nix) args;
|
|
|
|
buildNode2nixPackage = (import ./build/node2nix-package.nix) args;
|
|
|
|
errorReporter = (import ./node-error-reporter) args;
|
|
|
|
errorReporter = (import ./node-error-reporter) args;
|
|
|
|
|
|
|
|
optionalValue = (import ./util/optional-value.nix);
|
|
|
|
in let
|
|
|
|
in let
|
|
|
|
serviceName = "node-${name}";
|
|
|
|
serviceName = "node-${name}";
|
|
|
|
cfg = config.services."${serviceName}";
|
|
|
|
cfg = config.services."${serviceName}";
|
|
|
@ -14,11 +15,11 @@
|
|
|
|
inherit src setupCommands;
|
|
|
|
inherit src setupCommands;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
errorReporterModule = if hasErrorReporting then (errorReporter {
|
|
|
|
errorReporterModule = optionalValue hasErrorReporting (errorReporter {
|
|
|
|
application = application;
|
|
|
|
application = application;
|
|
|
|
applicationName = name;
|
|
|
|
applicationName = name;
|
|
|
|
errorPath = errorPath;
|
|
|
|
errorPath = errorPath;
|
|
|
|
}) else null;
|
|
|
|
});
|
|
|
|
in {
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
imports = [
|
|
|
|
errorReporterModule
|
|
|
|
errorReporterModule
|
|
|
|