From ea030636aa3c14b9c997ad2ad76f01fbb9d4d212 Mon Sep 17 00:00:00 2001 From: V Date: Mon, 6 Jun 2022 15:09:37 +0200 Subject: fleet: it's monorepo time! Change-Id: I4670dd7930a9b6227993c1caf92c5877918f982d --- fleet/hosts/vityaz/git.nix | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'fleet/hosts/vityaz/git.nix') diff --git a/fleet/hosts/vityaz/git.nix b/fleet/hosts/vityaz/git.nix index 7ef9f9d..19e46bc 100644 --- a/fleet/hosts/vityaz/git.nix +++ b/fleet/hosts/vityaz/git.nix @@ -32,29 +32,18 @@ with lib; users.groups.git = {}; # TODO(V): Enable the reflog? - declarative.git.repositories = flip genAttrs (repo: { + declarative.git.repositories.basin = { hooks.post-receive = [ # FIXME(V): There are more than a number of issues with this! - # - non-generic (we could use $GIT_DIR or such) # - requires an explicit remote (we could add this to the config) # - only updates trunk (even if other branches were pushed) # - has no way to filter specific branches from being published # - does not synchronize tags (pkgs.writeShellScript "sync-repository" '' - git push trieste:${repo} trunk + git push trieste:basin trunk '') ]; - }) [ - # TODO(V): Take the list of public repositories from hosts/trieste/git.nix - # (or do the inverse) - # (or put this information in a shared location) - "ripple" - "ripple-website" - "nixos-config" - - # Note: private repositories are currently not configured here. - # If we find it acceptable to leak their names, they could take advantage of this module as well. - ]; + }; # TODO(V): Linting hooks (honestly, these should just go in CI) # - reuse lint -- cgit 1.4.1