k 3 repo-sync: add more explicit documentation

This commit is contained in:
makefu 2016-09-07 15:52:37 +02:00
parent 907499c10b
commit 71b41a206e
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -17,29 +17,57 @@ let
# see `repo-sync --help` # see `repo-sync --help`
# `ref` provides sane defaults and can be omitted # `ref` provides sane defaults and can be omitted
# you can have multiple repo-sync groups and therefore multiple @latest
# configuration entries.
# attrset will be converted to json and be used as config # attrset will be converted to json and be used as config
{ repo = { # each attrset defines a group of repos for syncing
{ nxpkgs = {
makefu = { makefu = {
origin = { origin = {
url = http://github.com/makefu/repo ; url = http://github.com/makefu/nixpkgs;
ref = "heads/dev" ; ref = "heads/dev" ;
}; };
mirror = { mirror = {
url = "git@internal:mirror" ; url = "git@internal:nixpkgs-mirror" ;
ref = "heads/github-mirror-dev" ; ref = "heads/github-mirror-dev" ;
}; };
}; };
lass = { lass = {
origin = { origin = {
url = http://github.com/lass/repo ; url = http://github.com/lass/nixpkgs;
}; };
mirror = { mirror = {
url = "git@internal:mirror" ; url = "git@internal:nixpkgs-mirror" ;
}; };
}; };
"@latest" = { "@latest" = {
mirror = { mirror = {
url = "git@internal:mirror"; url = "git@internal:nixpkgs-mirror";
ref = "heads/master";
};
};
};
stockholm = {
lass = {
origin = {
url = http://cgit.prism.r/stockholm;
};
mirror = {
url = "git@internal:stockholm-mirror" ;
};
};
makefu = {
origin = {
url = http://gum.krebsco.de/stockholm;
};
mirror = {
url = "git@internal:stockholm-mirror" ;
};
};
"@latest" = {
mirror = {
url = "git@internal:stockholm-mirror";
ref = "heads/master"; ref = "heads/master";
}; };
}; };