diff options
| author | Dominik Kaiser | 2025-02-17 13:30:50 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-17 13:30:50 +0100 |
| commit | a45cdec50ad86fe908f37d0ec38cfb48ac743726 (patch) | |
| tree | ff37ee7ee0a9a6e5d707e54cecb709e38ebc633f /hosts/antares | |
| parent | 96c00e02d3d1a54e8b5f5da6d12325bc3606cd9f (diff) | |
| download | nixos-a45cdec50ad86fe908f37d0ec38cfb48ac743726.tar.gz nixos-a45cdec50ad86fe908f37d0ec38cfb48ac743726.zip | |
Add git-daemon to antares
Diffstat (limited to 'hosts/antares')
| -rw-r--r-- | hosts/antares/configuration.nix | 10 |
1 files 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 - -" |
