fixup! WIP: enable gickup on bicep

This commit is contained in:
h7x4
2025-05-07 22:17:49 +02:00
parent 6f25344fa6
commit cc9ceb0255
2 changed files with 253 additions and 65 deletions

View File

@@ -3,47 +3,61 @@
services.gickup = {
enable = true;
settings = {
source = {
github = [{
# token_file = sops
include = [
"go-gitea/gitea"
"unmojang/FjordLauncher"
"unmojang/drasl"
"NixOS/nixpkgs"
"saltstack/salt"
"heimdal/heimdal"
"yushijinhun/authlib-injector"
"Git-Mediawiki/Git-Mediawiki"
];
wiki = true;
issues = true;
}];
gitlab = [{
include = [
"mx-puppet/discord/better-discord.js"
"mx-puppet/discord/matrix-discord-parser"
"mx-puppet/discord/discord-markdown"
"mx-puppet/discord/mx-puppet-discord"
"mx-puppet/mx-puppet-bridge"
];
}];
any = [
{
url = "https://sourceware.org/git/glibc.git";
}
];
};
destinationSettings = {
structured = true;
zip = false;
keep = 10;
bare = true;
lfs = true;
};
destination.local = [{
path = "/data/git-mirrors";
structured = true;
zip = true;
keep = 5;
bare = true;
lfs = true;
}];
instances = let
defaultGithubConfig = {
# settings.token_file = ...
};
defaultGitlabConfig = {
# settings.token_file = ...
};
in {
"github:go-gitea/gitea" = defaultGithubConfig;
"github:unmojang/FjordLauncher" = defaultGithubConfig;
"github:unmojang/drasl" = defaultGithubConfig;
"github:NixOS/nixpkgs" = defaultGithubConfig;
"github:saltstack/salt" = defaultGithubConfig;
"github:heimdal/heimdal" = defaultGithubConfig;
"github:yushijinhun/authlib-injector" = defaultGithubConfig;
"github:Git-Mediawiki/Git-Mediawiki" = defaultGithubConfig;
"gitlab:mx-puppet/discord/better-discord.js" = defaultGitlabConfig;
"gitlab:mx-puppet/discord/matrix-discord-parser" = defaultGitlabConfig;
"gitlab:mx-puppet/discord/discord-markdown" = defaultGitlabConfig;
"gitlab:mx-puppet/discord/mx-puppet-discord" = defaultGitlabConfig;
"gitlab:mx-puppet/mx-puppet-bridge" = defaultGitlabConfig;
"any:glibc" = {
settings.url = "https://sourceware.org/git/glibc.git";
};
};
};
services.cgit = let
domain = "mirrors.pvv.ntnu.no";
in {
${domain} = {
enable = true;
group = "gickup";
scanPath = "/var/lib/gickup";
settings = {
enable-commit-graph = true;
enable-follow-links = true;
enable-http-clone = true;
enable-remote-branches = true;
clone-url = "https://${domain}/$CGIT_REPO_URL";
remove-suffix = true;
root-title = "https://${domain}";
root-desc = "PVV's repository mirroring service";
snapshots = "all";
};
};
};
}