Gitolite: Difference between revisions

From NixOS Wiki
m add VC category, link to Git
Klinger (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
You can now check out the <code>gitolite-admin</code> repo using the <code>gitolite</code> user. Gitolite's configuration is located in <code>conf/gitolite.conf</code> and you can give users access by adding their public keys to <code>keydir</code>.
You can now check out the <code>gitolite-admin</code> repo using the <code>gitolite</code> user. Gitolite's configuration is located in <code>conf/gitolite.conf</code> and you can give users access by adding their public keys to <code>keydir</code>.


[[Category:Applications]]
 
[[Category:Server]]
[[Category:Version control]]
[[Category:Version control]]

Latest revision as of 23:40, 30 December 2024

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.