diff options
author | V <v@unfathomable.blue> | 2022-06-06 15:09:37 +0200 |
---|---|---|
committer | V <v@unfathomable.blue> | 2022-06-20 09:40:50 +0200 |
commit | ea030636aa3c14b9c997ad2ad76f01fbb9d4d212 (patch) | |
tree | aad9bf02d5c3a53c50ac9f04bbc92d2e032bca88 /fleet/hosts/vityaz | |
parent | 82faf4bb2e000a84bbe80ccd27bbc03c778cc7ee (diff) | |
download | unf-legacy-ea030636aa3c14b9c997ad2ad76f01fbb9d4d212.tar.zst |
fleet: it's monorepo time!
Change-Id: I4670dd7930a9b6227993c1caf92c5877918f982d
Diffstat (limited to 'fleet/hosts/vityaz')
-rw-r--r-- | fleet/hosts/vityaz/git.nix | 17 |
1 files changed, 3 insertions, 14 deletions
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 |