From 5105293d4cfc6ca6bde58f0636e0b5ae06cbbb0f Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Sat, 15 May 2021 13:10:57 +0200
Subject: [PATCH] ma social-to-irc: restart brockman

---
 2configs/bgt/social-to-irc.nix | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/2configs/bgt/social-to-irc.nix b/2configs/bgt/social-to-irc.nix
index dc975c3..ac4c6ca 100644
--- a/2configs/bgt/social-to-irc.nix
+++ b/2configs/bgt/social-to-irc.nix
@@ -1,10 +1,16 @@
 {
-  # systemd.services.brockman.environment."BROCKMAN_LOG_LEVEL" = "DEBUG";
+  systemd.services.brockman.environment."BROCKMAN_LOG_LEVEL" = "DEBUG";
+  systemd.services.restart-brockman = {
+    after = [ "brockman.service" ];
+    wantedBy = [ "multi-user.target" ];
+    startAt = "daily";
+    script = "${pkgs.systemd}/bin/systemctl try-restart brockman.service";
+  };
   krebs.brockman = {
     enable = true;
     config = {
       channel = "#binaergewitter";
-      notifyErrors =  false;
+      notifyErrors = false;
       irc = {
         host = "irc.freenode.net";
         port = 6667;