l 2 repo-sync: use new api
This commit is contained in:
parent
8464ebbf69
commit
d7b71cdb91
@ -36,6 +36,7 @@ let
|
|||||||
sync-retiolum = name:
|
sync-retiolum = name:
|
||||||
{
|
{
|
||||||
krebs.repo-sync.repos.${name} = {
|
krebs.repo-sync.repos.${name} = {
|
||||||
|
branches = {
|
||||||
makefu = {
|
makefu = {
|
||||||
origin.url = "http://cgit.gum/${name}";
|
origin.url = "http://cgit.gum/${name}";
|
||||||
mirror.url = "${mirror}${name}";
|
mirror.url = "${mirror}${name}";
|
||||||
@ -52,9 +53,10 @@ let
|
|||||||
origin.url = "http://cgit.lassul.us/${name}";
|
origin.url = "http://cgit.lassul.us/${name}";
|
||||||
mirror.url = "${mirror}${name}";
|
mirror.url = "${mirror}${name}";
|
||||||
};
|
};
|
||||||
"@latest" = {
|
};
|
||||||
mirror.url = "${mirror}${name}";
|
latest = {
|
||||||
mirror.ref = "heads/newest";
|
url = "${mirror}${name}";
|
||||||
|
ref = "heads/newest";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
krebs.git = defineRepo name (config.networking.hostName == "prism");
|
krebs.git = defineRepo name (config.networking.hostName == "prism");
|
||||||
@ -63,22 +65,26 @@ let
|
|||||||
sync-remote = name: url:
|
sync-remote = name: url:
|
||||||
{
|
{
|
||||||
krebs.repo-sync.repos.${name} = {
|
krebs.repo-sync.repos.${name} = {
|
||||||
|
branches = {
|
||||||
remote = {
|
remote = {
|
||||||
origin.url = url;
|
origin.url = url;
|
||||||
mirror.url = "${mirror}${name}";
|
mirror.url = "${mirror}${name}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
krebs.git = defineRepo name (config.networking.hostName == "prism");
|
krebs.git = defineRepo name (config.networking.hostName == "prism");
|
||||||
};
|
};
|
||||||
|
|
||||||
sync-remote-silent = name: url:
|
sync-remote-silent = name: url:
|
||||||
{
|
{
|
||||||
krebs.repo-sync.repos.${name} = {
|
krebs.repo-sync.repos.${name} = {
|
||||||
|
branches = {
|
||||||
remote = {
|
remote = {
|
||||||
origin.url = url;
|
origin.url = url;
|
||||||
mirror.url = "${mirror}${name}";
|
mirror.url = "${mirror}${name}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
krebs.git = defineRepo name false;
|
krebs.git = defineRepo name false;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -109,4 +115,3 @@ in {
|
|||||||
(sync-retiolum "xmonad-stockholm")
|
(sync-retiolum "xmonad-stockholm")
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user