Gitolite: Difference between revisions
m add link to homepage |
m add VC category, link to Git |
||
Line 1: | Line 1: | ||
[https://gitolite.com/ '''Gitolite'''] allows you to host | [https://gitolite.com/ '''Gitolite'''] allows you to host [[Git]] repositories with fine-grained access control. | ||
== Installation == | == Installation == | ||
Line 6: | Line 6: | ||
<syntaxhighlight lang=nix> | <syntaxhighlight lang=nix> | ||
services.gitolite = { | |||
enable = true; | |||
adminPubkey = "<ssh public key>"; | |||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Version control]] |
Revision as of 17:56, 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
.