From 7cdd99f2b777f2335bfac1cfb686c07add288b05 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 19 Jun 2017 23:07:51 +0200 Subject: [PATCH] gitrepos: don't announce brain's cgit link Because it's not accessible anyway. --- tv/2configs/gitrepos.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 7e059cc46..b6480f356 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -90,26 +90,28 @@ let { { brain = { collaborators = with config.krebs.users; [ lass makefu ]; - hooks.post-receive = irc-announce-retiolum; + hooks.post-receive = irc-announce { + cgit_endpoint = null; + }; }; } // # TODO don't put secrets/repos.nix into the store import { inherit config lib pkgs; } ); - irc-announce-retiolum = pkgs.git-hooks.irc-announce { + irc-announce = args: pkgs.git-hooks.irc-announce (recursiveUpdate { + channel = "#retiolum"; # TODO make nick = config.krebs.build.host.name the default nick = config.krebs.build.host.name; - channel = "#retiolum"; server = "ni.r"; verbose = true; - }; + } args); make-public-repo = name: { cgit ? {}, ... }: { inherit cgit name; public = true; hooks = optionalAttrs (config.krebs.build.host.name == "ni") { - post-receive = irc-announce-retiolum; + post-receive = irc-announce {}; }; };