From a45cdec50ad86fe908f37d0ec38cfb48ac743726 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Mon, 17 Feb 2025 13:30:50 +0100 Subject: [PATCH] Add git-daemon to antares --- hosts/antares/configuration.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/antares/configuration.nix b/hosts/antares/configuration.nix index d73ad48..5ac3fe2 100644 --- a/hosts/antares/configuration.nix +++ b/hosts/antares/configuration.nix @@ -108,7 +108,6 @@ }; users.users.git = { isSystemUser = true; - description = "git"; group = "git"; home = "/srv/git"; shell = "${pkgs.git}/bin/git-shell"; @@ -118,9 +117,16 @@ ]; }; + services.gitDaemon = { + enable = true; + user = "git"; + basePath = "/srv/git"; + exportAll = true; + }; + users.groups.git = {}; - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ 80 443 9418 ]; systemd.tmpfiles.rules = [ "d /srv/git 755 git git - -" -- 2.47.2