From 4bf39c16d5dbadb261b82625f4d4c5e9f9c4381e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 26 Sep 2017 19:43:28 +0200 Subject: Update gitolite config --- ymir.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ymir.nix b/ymir.nix index 91604105..ac8c696c 100644 --- a/ymir.nix +++ b/ymir.nix @@ -411,9 +411,18 @@ in rec { enable = true; adminPubkey = builtins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); dataDir = "/srv/git"; - }; - users.extraUsers."gitolite" = { + user = "gitolite"; group = "git"; + extraGitoliteRc = '' + $RC{UMASK} = 0027; + $RC{GIT_CONFIG_KEYS} = 'gitweb\.(owner|description|category)'; + $RC{LOG_DEST} = 'syslog'; + $RC{ROLES}{AUTHORS} = 1; + $RC{GROUPLIST_PGM} = 'printf "@self-key-managers"'; + $RC{HOSTNAME} = '${networking.hostName}'; + $RC{LOCAL_CODE} = "$rc{GL_ADMIN_BASE}/local"; + push(@{$RC{ENABLE}}, qw(create fork D cgit repo-specific-hooks macros)); + ''; }; services.gitDaemon = { -- cgit v1.2.3