nixos/git-daemon: fix a bug and add 'user' and 'group' options

This fixes a bug when using together `exportAll` and `repositories` and adds `user` and `group` options. Latter allow one, e.g., to run gitolite with access rights and git-daemon for pulls in the same gitolite home.