update test gitolite config

This commit is contained in:
lassulus 2015-05-21 20:36:19 +02:00
parent ad2093acbd
commit 1d40f7ffc6

View File

@ -19,7 +19,7 @@
]; ];
nixpkgs = { nixpkgs = {
url = "https://github.com/Lassulus/nixpkgs"; url = "https://github.com/Lassulus/nixpkgs";
rev = "b3531eebf625e388d2fa33d56646180236263e74"; rev = "946329e1342acc08d9bed9e7af860f2a5b1f1765";
}; };
services.gitolite = { services.gitolite = {
@ -82,7 +82,7 @@
repo config repo config
RW+ = lass RW+ = lass
RW+ = uriel RW+ = uriel
R = fastpoke option hook.post-receive = irc-announce
''; '';
rc = '' rc = ''
@ -229,6 +229,26 @@
| nc "$IRC_SERVER" "$IRC_PORT" | tee -a ircin | nc "$IRC_SERVER" "$IRC_PORT" | tee -a ircin
''; '';
}; };
customFiles = [
{
filename = ".gitolite/conf/irc-announce.conf";
content = ''
IRC_NICK="$(hostname)$GL_TID"
case "$GL_REPO" in
brain|painload|services|load-env|pong|config)
IRC_CHANNEL='#retiolum'
;;
emse*)
IRC_CHANNEL='#emse'
;;
*)
IRC_CHANNEL='&testing'
;;
esac
'';
}
];
}; };