2016-02-04 01:48:28 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2016-02-04 01:48:28 +00:00
|
|
|
let
|
2016-02-04 13:36:48 +00:00
|
|
|
rules = with git; singleton {
|
2016-02-15 13:00:21 +00:00
|
|
|
user = [ wolf-repo-sync ];
|
2016-02-04 01:48:28 +00:00
|
|
|
repo = [ stockholm-mirror ];
|
|
|
|
perm = push ''refs/*'' [ non-fast-forward create delete merge ];
|
2016-02-04 13:36:48 +00:00
|
|
|
};
|
2016-02-04 01:48:28 +00:00
|
|
|
|
|
|
|
stockholm-mirror = {
|
|
|
|
public = true;
|
|
|
|
name = "stockholm-mirror";
|
2016-06-07 01:14:21 +00:00
|
|
|
cgit.desc = "mirror for all stockholm branches";
|
2016-02-04 01:48:28 +00:00
|
|
|
hooks = {
|
|
|
|
post-receive = pkgs.git-hooks.irc-announce {
|
|
|
|
nick = config.networking.hostName;
|
|
|
|
verbose = false;
|
|
|
|
channel = "#retiolum";
|
|
|
|
server = "cd.retiolum";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-15 13:00:21 +00:00
|
|
|
wolf-repo-sync = {
|
|
|
|
name = "wolf-repo-sync";
|
2016-02-04 01:48:28 +00:00
|
|
|
mail = "spam@krebsco.de";
|
|
|
|
# TODO put git-sync pubkey somewhere more appropriate
|
2016-02-15 13:00:21 +00:00
|
|
|
pubkey = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwuAZB3wtAvBJFYh+gWdyGaZU4mtqM2dFXmh2rORlbXeh02msu1uv07ck1VKkQ4LgvCBcBsAOeVa1NTz99eLqutwgcqMCytvRNUCibcoEWwHObsK53KhDJj+zotwlFhnPPeK9+EpOP4ngh/tprJikttos5BwBwe2K+lfiid3fmVPZcTTYa77nCwijimMvWEx6CEjq1wiXMUc4+qcEn8Swbwomz/EEQdNE2hgoC3iMW9RqduTFdIJWnjVi0KaxenX9CvQRGbVK5SSu2gwzN59D/okQOCP6+p1gL5r3QRHSLSSRiEHctVQTkpKOifrtLZGSr5zArEmLd/cOVyssHQPCX repo-sync@wolf'';
|
2016-02-04 01:48:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
2016-02-15 13:00:21 +00:00
|
|
|
krebs.users.wolf-repo-sync = wolf-repo-sync;
|
2016-02-04 01:48:28 +00:00
|
|
|
krebs.git = {
|
|
|
|
enable = true;
|
2016-06-07 01:14:21 +00:00
|
|
|
cgit = {
|
|
|
|
settings = {
|
|
|
|
root-title = "Shared Repos";
|
|
|
|
root-desc = "keep on krebsing";
|
|
|
|
};
|
|
|
|
};
|
2016-02-04 01:48:28 +00:00
|
|
|
inherit rules;
|
|
|
|
repos.stockholm-mirror = stockholm-mirror;
|
|
|
|
};
|
|
|
|
}
|