From 57361fe86a0945de63754073682ad6506b28ca61 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 13 Jul 2017 17:30:08 +0200 Subject: [PATCH] Move pastebin-stream configuration directly into the createJsonConfiguration call --- applications/pastebin-stream.nix | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/applications/pastebin-stream.nix b/applications/pastebin-stream.nix index a60d334..6837adb 100644 --- a/applications/pastebin-stream.nix +++ b/applications/pastebin-stream.nix @@ -8,24 +8,22 @@ in {errorPath, debugMode ? false, rev, sha256}: let - configuration = { - errors = { - directory = errorPath; - }; + configurationFile = createJsonConfiguration { + name = "pastebin-stream-configuration.json"; + contents = { + errors = { + directory = errorPath; + }; - scraperSettings = { - pastebinCom = { - listInterval = 60; - listLimit = 100; - pasteInterval = 1; + scraperSettings = { + pastebinCom = { + listInterval = 60; + listLimit = 100; + pasteInterval = 1; + }; }; }; }; - - configurationFile = createJsonConfiguration { - name = "pastebin-stream-configuration.json"; - contents = configuration; - }; in nodeApplication { name = "pastebin-stream";