hotdog.r: repo-sync stockholm, define krops

This commit is contained in:
lassulus 2023-04-11 22:35:48 +02:00
parent b3fc238c9d
commit e6ef361bb9
2 changed files with 23 additions and 88 deletions

View File

@ -12,6 +12,7 @@
<stockholm/krebs/2configs/wiki.nix> <stockholm/krebs/2configs/wiki.nix>
<stockholm/krebs/2configs/acme.nix> <stockholm/krebs/2configs/acme.nix>
<stockholm/krebs/2configs/mud.nix> <stockholm/krebs/2configs/mud.nix>
<stockholm/krebs/2configs/repo-sync.nix>
<stockholm/krebs/2configs/cal.nix> <stockholm/krebs/2configs/cal.nix>
<stockholm/krebs/2configs/mastodon.nix> <stockholm/krebs/2configs/mastodon.nix>

View File

@ -22,7 +22,6 @@ let
post-receive = pkgs.git-hooks.irc-announce { post-receive = pkgs.git-hooks.irc-announce {
channel = "#xxx"; channel = "#xxx";
refs = [ refs = [
"refs/heads/master"
"refs/heads/newest" "refs/heads/newest"
"refs/tags/*" "refs/tags/*"
]; ];
@ -37,7 +36,6 @@ let
{ {
user = with config.krebs.users; [ user = with config.krebs.users; [
config.krebs.users."${config.networking.hostName}-repo-sync" config.krebs.users."${config.networking.hostName}-repo-sync"
jeschli
lass lass
makefu makefu
tv tv
@ -50,7 +48,7 @@ let
konsens-user konsens-user
]; ];
repo = [ repo ]; repo = [ repo ];
perm = push ''refs/heads/master'' [ create merge ]; perm = push "refs/heads/common" [ create merge ];
} }
{ {
user = attrValues config.krebs.users; user = attrValues config.krebs.users;
@ -61,31 +59,18 @@ let
repos."${name}" = repo; repos."${name}" = repo;
}; };
sync-retiolum = { sync-repo = {
name, name,
remotes,
desc ? "mirror for ${name}", desc ? "mirror for ${name}",
section ? "mirror" section ? "mirror"
}: }:
{ {
krebs.repo-sync.repos.${name} = { krebs.repo-sync.repos.${name} = {
branches = { branches = (lib.mapAttrs' (user: url: lib.nameValuePair user {
lassulus = { origin.url = url;
origin.url = "http://cgit.lassul.us/${name}";
mirror.url = "${mirror}${name}"; mirror.url = "${mirror}${name}";
}; }) remotes);
makefu = {
origin.url = "http://cgit.gum/${name}";
mirror.url = "${mirror}${name}";
};
nin = {
origin.url = "http://cgit.onondaga.r/${name}";
mirror.url = "${mirror}${name}";
};
tv = {
origin.url = "http://cgit.ni.r/${name}";
mirror.url = "${mirror}${name}";
};
};
latest = { latest = {
url = "${mirror}${name}"; url = "${mirror}${name}";
ref = "heads/newest"; ref = "heads/newest";
@ -94,24 +79,6 @@ let
krebs.git = defineRepo { inherit name desc section; }; krebs.git = defineRepo { inherit name desc section; };
}; };
sync-remote = {
name,
url,
desc ? "mirror for ${name}",
section ? "mirror"
}:
{
krebs.repo-sync.repos.${name} = {
branches = {
remote = {
origin.url = url;
mirror.url = "${mirror}${name}";
};
};
};
krebs.git = defineRepo { inherit name desc section; };
};
in { in {
krebs.git = { krebs.git = {
enable = true; enable = true;
@ -126,7 +93,6 @@ in {
krebs.konsens = { krebs.konsens = {
enable = true; enable = true;
repos = { repos = {
krops = { branchesToCheck = [ "lassulus" "tv" ]; };
stockholm = {}; stockholm = {};
}; };
}; };
@ -137,52 +103,20 @@ in {
}; };
imports = [ imports = [
(sync-retiolum { name = "the_playlist"; desc = "Good Music collection + tools"; section = "art"; }) (sync-repo {
name = "stockholm";
(sync-retiolum { name = "stockholm"; desc = "take all computers hostage, they love it"; section = "configuration"; }) desc = "take all computers hostage, they love it";
section = "configuration";
(sync-retiolum { name = "cholerab"; desc = "krebs thesauron & enterprise-patterns"; section = "documentation"; }) remotes = {
makefu = "http://cgit.gum.r/stockholm";
(sync-retiolum { name = "buildbot-classic"; desc = "fork of buildbot"; section = "software"; }) tv = "http://cgit.ni.r/stockholm";
(sync-retiolum { name = "disko"; desc = "take a description of your disk layout and produce a format script"; section = "software"; }) lassulus = "http://cgit.orange.r/stockholm";
(sync-retiolum { name = "news"; desc = "take a rss feed and a timeout and print it to stdout"; section = "software"; }) };
(sync-retiolum { name = "krops"; desc = "krebs ops"; section = "software"; }) })
(sync-retiolum { name = "go"; desc = "url shortener"; section = "software"; }) ({ krebs.git = defineRepo {
(sync-retiolum { name = "much"; desc = "curses email client"; section = "software"; }) name = "krops";
(sync-retiolum { name = "newsbot-js"; desc = "irc rss/atom bot"; section = "software"; }) desc = "deployment tools";
(sync-retiolum { name = "nix-writers"; desc = "high level writers for nix"; section = "software"; }) section = "deployment";
};})
(sync-retiolum { name = "cac-api"; desc = "CloudAtCost API command line interface"; section = "miscellaneous"; })
(sync-retiolum { name = "dic"; desc = "dict.leo.org command line interface"; section = "miscellaneous"; })
(sync-retiolum { name = "get"; section = "miscellaneous"; })
(sync-retiolum { name = "hstool"; desc = "Haskell Development Environment ^_^"; section = "miscellaneous"; })
(sync-retiolum { name = "htgen"; desc = "toy HTTP server"; section = "miscellaneous"; })
(sync-retiolum { name = "kirk"; desc = "IRC tools"; section = "miscellaneous"; })
(sync-retiolum { name = "load-env"; section = "miscellaneous"; })
(sync-retiolum { name = "loldns"; desc = "toy DNS server"; section = "miscellaneous"; })
(sync-retiolum { name = "netcup"; desc = "netcup command line interface"; section = "miscellaneous"; })
(sync-retiolum { name = "populate"; desc = "source code installer"; section = "miscellaneous"; })
(sync-retiolum { name = "q"; section = "miscellaneous"; })
(sync-retiolum { name = "regfish"; section = "miscellaneous"; })
(sync-retiolum { name = "soundcloud"; desc = "SoundCloud command line interface"; section = "miscellaneous"; })
(sync-retiolum { name = "blessings"; section = "Haskell libraries"; })
(sync-retiolum { name = "mime"; section = "Haskell libraries"; })
(sync-retiolum { name = "quipper"; section = "Haskell libraries"; })
(sync-retiolum { name = "scanner"; section = "Haskell libraries"; })
(sync-retiolum { name = "wai-middleware-time"; section = "Haskell libraries"; })
(sync-retiolum { name = "web-routes-wai-custom"; section = "Haskell libraries"; })
(sync-retiolum { name = "xintmap"; section = "Haskell libraries"; })
(sync-retiolum { name = "xmonad-stockholm"; desc = "krebs xmonad modules"; section = "Haskell libraries"; })
(sync-remote { name = "array"; url = "https://github.com/makefu/array"; })
(sync-remote { name = "email-header"; url = "https://github.com/4z3/email-header"; })
(sync-remote { name = "mycube-flask"; url = "https://github.com/makefu/mycube-flask"; })
(sync-remote { name = "reaktor-titlebot"; url = "https://github.com/makefu/reaktor-titlebot"; })
(sync-remote { name = "repo-sync"; url = "https://github.com/makefu/repo-sync"; })
(sync-remote { name = "skytraq-datalogger"; url = "https://github.com/makefu/skytraq-datalogger"; })
(sync-remote { name = "realwallpaper"; url = "https://github.com/lassulus/realwallpaper"; })
(sync-remote { name = "painload"; url = "https://github.com/krebs/painload"; })
(sync-remote { name = "nixos-wiki"; url = "https://github.com/Mic92/nixos-wiki.wiki.git"; })
]; ];
} }