1 {pkgs, lib, config, system, ...}:
2 let inherit (builtins.extraBuiltins) pass;
4 inherit (config.services) gitolite;
5 userPass = name: pass ("${config.networking.domain}/${config.networking.hostName}/"+name);
6 gitolite-admin = "julm";
10 environment.systemPackages = [ pkgs.gitolite ];
11 # NOTE: make confortable to call gitolite from a shell
17 group = gitolite.user;
18 adminPubkey = pass "${config.networking.domain}/ssh/${gitolite-admin}";
21 $RC{LOG_DEST} = 'repo-log,syslog';
22 $RC{LOG_FACILITY} = 'local0';
23 $RC{GIT_CONFIG_KEYS} = 'hooks.* gitweb.*';
24 $RC{LOCAL_CODE} = "$rc{GL_ADMIN_BASE}/local"
25 if -d "$rc{GL_ADMIN_BASE}/local";
26 push(@{$RC{ENABLE}}, ( 'Alias'
29 , 'Shell ${gitolite-admin}'
31 , 'expand-deny-messages'
33 , 'keysubdirs-as-groups'
35 , 'repo-specific-hooks'
36 , 'ssh-authkeys-split'