Gitolite: Difference between revisions
imported>Jaculabilis Created page with "'''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 gitol..." |
m Category:Applications removed |
||
| (6 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
'''Gitolite''' allows you to host | [https://gitolite.com/ '''Gitolite'''] allows you to host [[Git]] repositories with fine-grained access control. | ||
== Installation == | == Installation == | ||
| Line 5: | Line 5: | ||
Obtain the SSH public key of the user you will use to configure gitolite, then add the following to your NixOS config: | Obtain the SSH public key of the user you will use to configure gitolite, then add the following to your NixOS config: | ||
<syntaxhighlight lang= | <syntaxhighlight lang=nix> | ||
services.gitolite = { | |||
enable = true; | |||
adminPubkey = "<ssh public key>"; | |||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
When you rebuild, a new unit should start: | When you rebuild, a new unit should start: | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
the following new units were started: gitolite-init.service | the following new units were started: gitolite-init.service | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You can now check out the <code>gitolite-admin</code> repo. 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:Server]] | |||
[[Category:Version control]] | |||