services.gitDaemon.repositories

A whitelist of paths of git repositories, or directories containing repositories all of which would be published. Paths must not end in "/".

Warning: leaving this empty and enabling exportAll publishes all repositories in your filesystem or basePath if specified.

Type
list of string
Default
[ ]
Example
[
  "/srv/git"
  "/home/user/git/repo2"
]
Declared
<nixpkgs/nixos/modules/services/networking/git-daemon.nix>