Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/lighttpd: set $HOME for gitweb sub-service

This allows gitweb to expand '~' in /etc/gitconfig. Without a $HOME
variable, it fails to list any projects and instead show the text
"No such projects found" in the UI.

Setting $HOME to the gitweb project root seems like a sensible value.

(cherry picked from commit d916ce2ef40e412c361805531eff5966a309da1d)

Changed files
+2 -1
nixos
modules
services
web-servers
lighttpd
+2 -1
nixos/modules/services/web-servers/lighttpd/gitweb.nix
··· 60 60 "/gitweb/" => "${pkgs.git}/share/gitweb/gitweb.cgi" 61 61 ) 62 62 setenv.add-environment = ( 63 - "GITWEB_CONFIG" => "${gitwebConfigFile}" 63 + "GITWEB_CONFIG" => "${gitwebConfigFile}", 64 + "HOME" => "${cfg.projectroot}" 64 65 ) 65 66 } 66 67 '';