From e928a5e981a1a7bf12c2d3a06a06e430a61f8536 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 30 Mar 2025 17:42:14 +0200 Subject: [PATCH] WIP: enable gickup on bicep --- hosts/bicep/configuration.nix | 1 + hosts/bicep/services/git-mirrors/default.nix | 49 ++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 hosts/bicep/services/git-mirrors/default.nix 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; + }]; + }; + }; +}