about summary refs log tree commit diff
path: root/colmena/cobalt/services/gitolite.nix
blob: 55dec6ce36150e9b67cbb6026fd343dc1c7ea835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  services.gitolite = {
    enable = true;
    user = "git";
    group = "git";
    adminPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDi7GGOGVj1Y5Sc1EW6zEdrp78dS6hvmS348pqu9dUsB openpgp:0x6BE7BD6F";
    extraGitoliteRc = ''
      $RC{UMASK} = 0027;
      $RC{GIT_CONFIG_KEYS} = '.*';
      $RC{ROLES}{OWNERS} = 1;
      $RC{OWNER_ROLENAME} = 'OWNERS';
      push(@{$RC{ENABLE}}, 'D');
      push(@{$RC{ENABLE}}, 'set-default-roles');
      # push(@{$RC{ENABLE}}, 'create');
      # push(@{$RC{ENABLE}}, 'fork');

    '';
  };

  environment.persistence."/persist".directories = [
    "/var/lib/gitolite"
  ];
}