From e0f73777601e56a1dec00d1d2b015fe3af5aba9c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 3 Sep 2018 20:14:25 +0200 Subject: gitolite on odin --- odin.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index e2f95f9d..cc0b70f6 100644 --- a/odin.nix +++ b/odin.nix @@ -404,6 +404,22 @@ }; }; + services.gitolite = { + enable = true; + adminPubkey = buildins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); + dataDir = "/srv/git"; + user = "gitolite"; + group = "git"; + enableGitAnnex = true; + extraGitoliteRc = '' + $RC{LOG_DEST} = 'syslog'; + $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 repo-specific-hooks macros git-annex-shell ua)); + ''; + }; + systemd.status-mail = { recipient = "root@odin.asgard.yggdrasil"; onFailure = [ "nixos-upgrade" -- cgit v1.2.3