summaryrefslogtreecommitdiff
path: root/Biz/Cloud/Git.nix
blob: b35b12634a01f5b7e4fc77030b28d92978423b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, lib, ... }:

{
  services = {
    gitolite = {
      enable = true;
      enableGitAnnex = true;
      dataDir = "/srv/git";
      user = "git";
      group = "git";
      extraGitoliteRc = ''
        $RC{SITE_INFO} = 'a computer is a bicycle for the mind.';
      '';
      adminPubkey = lib.trivial.pipe ../Keys/Ben.pub [
        builtins.readFile
        (lib.strings.splitString "\n")
        lib.lists.head
      ];
    };
  };
}