fixup! WIP: enable gickup on bicep

This commit is contained in:
h7x4
2025-05-07 22:28:27 +02:00
parent cc9ceb0255
commit 792958edf4
3 changed files with 45 additions and 34 deletions

View File

@@ -1,5 +1,9 @@
{ ... }:
{ config, ... }:
{
sops.secrets."gickup/github-token" = {
owner = "gickup";
};
services.gickup = {
enable = true;
@@ -13,7 +17,7 @@
instances = let
defaultGithubConfig = {
# settings.token_file = ...
settings.token_file = sops.secrets."gickup/github-token".path;
};
defaultGitlabConfig = {
# settings.token_file = ...
@@ -28,11 +32,11 @@
"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;
# "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";
@@ -40,24 +44,24 @@
};
};
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";
};
};
};
# 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";
# };
# };
# };
}