X-Git-Url: http://these/git/?a=blobdiff_plain;f=git%2Fdefault.nix;h=b92b2e30bd0778c15aef939b6f4d6c0c49fb0638;hb=HEAD;hp=cfc84f3d4216e5667bb014f8b738ceaa3649f25a;hpb=d60475cef95e4582795cf8049cf8f0584ca73aab;p=awful.systems.git diff --git a/git/default.nix b/git/default.nix index cfc84f3..b92b2e3 100644 --- a/git/default.nix +++ b/git/default.nix @@ -10,7 +10,7 @@ in { imports = [ ../secrets/keys/git.nix ]; users.extraUsers.git = { - uid = 402; + uid = config.ids.uids.git; isSystemUser = true; home = "/home/git"; createHome = true; @@ -19,13 +19,13 @@ in { shell = "${pkgs.git}/bin/git-shell"; }; - users.extraGroups.git = { gid = 402; }; + users.extraGroups.git = { gid = config.ids.gids.git; }; services.nginx.gitweb = { enable = true; location = "/git"; group = "git"; - virtualHost = "awful.systems these.awful.systems these"; + #virtualHost = "awful.systems these.awful.systems these"; }; services.gitweb = { @@ -33,5 +33,16 @@ in { projectroot = "/home/git/repos"; }; + services.gitDaemon = { + enable = true; + user = "git"; + group = "git"; + basePath = "/home/git/repos"; + exportAll = true; + repositories = [ "/home/git/repos" ]; + }; + environment.systemPackages = [ new-repo ]; + + networking.firewall.allowedTCPPorts = [ 9418 ]; }