diff options
author | tv <tv@krebsco.de> | 2017-06-19 22:46:26 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-19 22:46:26 +0200 |
commit | 4a608192841a7ece5a81c079a2a033a089bb4dcf (patch) | |
tree | 931f824e873fb4698e47f76ef847611afa5c65a0 /tv/2configs | |
parent | e4d7285cfdbf422417a57034162cdace775e198c (diff) |
tv gitrepos: announce brain
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/gitrepos.nix | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 13b1298..7e059cc 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -90,28 +90,31 @@ let { { brain = { collaborators = with config.krebs.users; [ lass makefu ]; + hooks.post-receive = irc-announce-retiolum; }; } // # TODO don't put secrets/repos.nix into the store import <secrets/repos.nix> { inherit config lib pkgs; } ); + irc-announce-retiolum = pkgs.git-hooks.irc-announce { + # TODO make nick = config.krebs.build.host.name the default + nick = config.krebs.build.host.name; + channel = "#retiolum"; + server = "ni.r"; + verbose = true; + }; + make-public-repo = name: { cgit ? {}, ... }: { inherit cgit name; public = true; hooks = optionalAttrs (config.krebs.build.host.name == "ni") { - post-receive = pkgs.git-hooks.irc-announce { - # TODO make nick = config.krebs.build.host.name the default - nick = config.krebs.build.host.name; - channel = "#retiolum"; - server = "ni.r"; - verbose = true; - }; + post-receive = irc-announce-retiolum; }; }; - make-restricted-repo = name: { collaborators ? [], ... }: { - inherit collaborators name; + make-restricted-repo = name: { collaborators ? [], hooks ? {}, ... }: { + inherit collaborators hooks name; public = false; }; |