gitrepos: don't announce brain's cgit link

Because it's not accessible anyway.
This commit is contained in:
tv 2017-06-19 23:07:51 +02:00
parent a8d188ff63
commit 7cdd99f2b7

View File

@ -90,26 +90,28 @@ let {
{ {
brain = { brain = {
collaborators = with config.krebs.users; [ lass makefu ]; 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 # TODO don't put secrets/repos.nix into the store
import <secrets/repos.nix> { inherit config lib pkgs; } import <secrets/repos.nix> { 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 # TODO make nick = config.krebs.build.host.name the default
nick = config.krebs.build.host.name; nick = config.krebs.build.host.name;
channel = "#retiolum";
server = "ni.r"; server = "ni.r";
verbose = true; verbose = true;
}; } args);
make-public-repo = name: { cgit ? {}, ... }: { make-public-repo = name: { cgit ? {}, ... }: {
inherit cgit name; inherit cgit name;
public = true; public = true;
hooks = optionalAttrs (config.krebs.build.host.name == "ni") { hooks = optionalAttrs (config.krebs.build.host.name == "ni") {
post-receive = irc-announce-retiolum; post-receive = irc-announce {};
}; };
}; };