Gitolite
services.gitolite.adminPubkey
Initial administrative public key for Gitolite. This should be an SSH Public Key. Note that this key will only be used once, upon the first initialization of the Gitolite user. The key string cannot have any line breaks in it.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.commonHooks
A list of custom git hooks that get copied to ~/.gitolite/hooks/common
.
Type: list of path
Default
[ ]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.dataDir
The gitolite home directory used to store all repositories. If left as the default value this directory will automatically be created before the gitolite server starts, otherwise the sysadmin is responsible for ensuring the directory exists with appropriate ownership and permissions.
Type: string
Default
"/var/lib/gitolite"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.description
Gitolite user account's description.
Type: string
Default
"Gitolite user"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.enable
Enable gitolite management under the
gitolite
user. After
switching to a configuration with Gitolite enabled, you can
then run git clone gitolite@host:gitolite-admin.git
to manage it further.
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.enableGitAnnex
Enable git-annex support. Uses the extraGitoliteRc
option
to apply the necessary configuration.
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.extraGitoliteRc
Extra configuration to append to the default ~/.gitolite.rc
.
This should be Perl code that modifies the %RC
configuration variable. The default ~/.gitolite.rc
content is generated by invoking gitolite print-default-rc
,
and extra configuration from this option is appended to it. The result
is placed to Nix store, and the ~/.gitolite.rc
file
becomes a symlink to it.
If you already have a customized (or otherwise changed)
~/.gitolite.rc
file, NixOS will refuse to replace
it with a symlink, and the gitolite-init
initialization service
will fail. In this situation, in order to use this option, you
will need to take any customizations you may have in
~/.gitolite.rc
, convert them to appropriate Perl
statements, add them to this option, and remove the file.
See also the enableGitAnnex
option.
Type: strings concatenated with "\n"
Default
""
Example
'' $RC{UMASK} = 0027; $RC{SITE_INFO} = 'This is our private repository host'; push( @{$RC{ENABLE}}, 'Kindergarten' ); # enable the command/feature @{$RC{ENABLE}} = grep { $_ ne 'desc' } @{$RC{ENABLE}}; # disable the command/feature''
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.group
Primary group of the Gitolite user account.
Type: string
Default
"gitolite"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix
services.gitolite.user
Gitolite user account. This is the username of the gitolite endpoint.
Type: string
Default
"gitolite"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/gitolite.nix