flake

Francesco Saccone's Nix flake.
git clone git://git.francescosaccone.com/flake
Log | Files | Refs | README | LICENSE

commit 0541b8f02c7535a294e8f1af67d089d66206ef51
parent 4efe323089a5f7a0b389f9e461f8a560adcbeb2e
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Wed, 16 Apr 2025 19:18:46 +0200

feat: implement dumb HTTP protocol for Git

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mhosts/git-server/default.nix | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/hosts/git-server/default.nix b/hosts/git-server/default.nix @@ -97,11 +97,16 @@ in owner = "Francesco Saccone"; url = "git://${gitDomain}/${name}"; }; - hooks.postReceive = scripts.stagitPostReceive { - inherit (stagit) destDir reposDir; - inherit name; - httpBaseUrl = "https://${gitDomain}"; - }; + hooks.postReceive = + builtins.concatStringsSep "\n" [ + (scripts.stagitPostReceive { + inherit (stagit) destDir reposDir; + inherit name; + httpBaseUrl = "https://${gitDomain}"; + }) + "git update-server-info" # Dumb HTTP protocol + ] + |> pkgs.writeShellScript "post-receive"; } ); daemon = {