Difference between revisions of "Gitolite"

From NixOS Wiki
Jump to: navigation, search
m (Specify user used to clone repos, as this is different from the standard `git` user.)
(Add warning about the new wiki)
Line 1: Line 1:
 +
{{warning|1=You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Gitolite.}}
 +
 
'''Gitolite''' allows you to host git repositories with fine-grained access control.
 
'''Gitolite''' allows you to host git repositories with fine-grained access control.
  

Revision as of 16:31, 4 April 2024

Warning: You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Gitolite.

Gitolite allows you to host git repositories with fine-grained access control.

Installation

Obtain the SSH public key of the user you will use to configure gitolite, then add the following to your NixOS config:

  services.gitolite = {
    enable = true;
    adminPubkey = "<ssh public key>";
  };

When you rebuild, a new unit should start:

the following new units were started: gitolite-init.service

You can now check out the gitolite-admin repo using the gitolite user. Gitolite's configuration is located in conf/gitolite.conf and you can give users access by adding their public keys to keydir.