s 1 wolf: provide cgit mirror
This commit is contained in:
parent
fdc4fa5c98
commit
f7d979b21f
|
@ -50,6 +50,7 @@ in {
|
|||
addrs6 = ["42:0:0:0:0:0:77:1"];
|
||||
aliases = [
|
||||
"wolf.retiolum"
|
||||
"cgit.wolf.retiolum"
|
||||
];
|
||||
tinc.pubkey = ''
|
||||
-----BEGIN RSA PUBLIC KEY-----
|
||||
|
|
|
@ -12,6 +12,7 @@ in
|
|||
../2configs/shack-nix-cacher.nix
|
||||
../2configs/shack-drivedroid.nix
|
||||
../2configs/buildbot-standalone.nix
|
||||
../2configs/cgit-mirror.nix
|
||||
# ../2configs/graphite.nix
|
||||
];
|
||||
# use your own binary cache, fallback use cache.nixos.org (which is used by
|
||||
|
|
41
shared/2configs/cgit-mirror.nix
Normal file
41
shared/2configs/cgit-mirror.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
rules = with git;[{
|
||||
# user = git-sync;
|
||||
user = git-sync;
|
||||
repo = [ stockholm-mirror ];
|
||||
perm = push ''refs/*'' [ non-fast-forward create delete merge ];
|
||||
}];
|
||||
|
||||
stockholm-mirror = {
|
||||
public = true;
|
||||
name = "stockholm-mirror";
|
||||
desc = "mirror for all stockholm branches";
|
||||
hooks = {
|
||||
post-receive = pkgs.git-hooks.irc-announce {
|
||||
nick = config.networking.hostName;
|
||||
verbose = false;
|
||||
channel = "#retiolum";
|
||||
server = "cd.retiolum";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
git-sync = {
|
||||
name = "git-sync";
|
||||
mail = "spam@krebsco.de";
|
||||
# TODO put git-sync pubkey somewhere more appropriate
|
||||
pubkey = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzUuzyoAhMgJmsiaTVWNSXqcrZNTpKpv0nfFBOMcNXUWEbvfAq5eNpg5cX+P8eoYl6UQgfftbYi06flKK3yJdntxoZKLwJGgJt9NZr8yZTsiIfMG8XosvGNQtGPkBtpLusgmPpu7t2RQ9QrqumBvoUDGYEauKTslLwupp1QeyWKUGEhihn4CuqQKiPrz+9vbNd75XOfVZMggk3j4F7HScatmA+p1EQXWyq5Jj78jQN5ZIRnHjMQcIZ4DOz1U96atwSKMviI1xEZIODYfgoGjjiWYeEtKaLVPtSqtLRGI7l+RNouMfwHLdTWOJSlIdFncfPXC6R19hTll3UHeHLtqLP git-sync'';
|
||||
};
|
||||
|
||||
in {
|
||||
krebs.git = {
|
||||
enable = true;
|
||||
root-title = "Shared Repos";
|
||||
root-desc = "keep on krebsing";
|
||||
inherit rules;
|
||||
repos.stockholm-mirror = stockholm-mirror;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue