From: Dominik Kaiser Date: Mon, 17 Feb 2025 12:30:50 +0000 (+0100) Subject: Add git-daemon to antares X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=a45cdec50ad86fe908f37d0ec38cfb48ac743726;p=config%2Fnixos.git Add git-daemon to antares --- 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 - -"