Skip to content

Commit

Permalink
nixos/lighttpd: set $HOME for gitweb sub-service
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bjornfor committed Apr 11, 2017
1 parent d55ab1a commit d916ce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/services/web-servers/lighttpd/gitweb.nix
Expand Up @@ -60,7 +60,8 @@ in
"/gitweb/" => "${pkgs.git}/share/gitweb/gitweb.cgi"
)
setenv.add-environment = (
"GITWEB_CONFIG" => "${gitwebConfigFile}"
"GITWEB_CONFIG" => "${gitwebConfigFile}",
"HOME" => "${cfg.projectroot}"
)
}
'';
Expand Down

0 comments on commit d916ce2

Please sign in to comment.