diff --git a/hosts/bicep/configuration.nix b/hosts/bicep/configuration.nix index 6bf7556..30b143c 100644 --- a/hosts/bicep/configuration.nix +++ b/hosts/bicep/configuration.nix @@ -8,6 +8,7 @@ ./services/nginx ./services/calendar-bot.nix + ./services/git-mirrors ./services/mysql.nix ./services/postgres.nix diff --git a/hosts/bicep/services/git-mirrors/default.nix b/hosts/bicep/services/git-mirrors/default.nix new file mode 100644 index 0000000..4efabd9 --- /dev/null +++ b/hosts/bicep/services/git-mirrors/default.nix @@ -0,0 +1,49 @@ +{ ... }: +{ + 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"; + } + ]; + }; + + destination.local = [{ + path = "/data/git-mirrors"; + structured = true; + zip = true; + keep = 5; + bare = true; + lfs = true; + }]; + }; + }; +}