summaryrefslogtreecommitdiff
path: root/hosts/antares/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/antares/configuration.nix')
-rw-r--r--hosts/antares/configuration.nix10
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 - -"