summaryrefslogtreecommitdiff
path: root/odin.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-03 20:14:25 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-03 20:14:25 +0200
commite0f73777601e56a1dec00d1d2b015fe3af5aba9c (patch)
tree7deaefba98c912e05a81105b871f5585cd0e85ef /odin.nix
parentb8681db85c2237c84b2e7c045210f86a30106942 (diff)
downloadnixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar
nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar.gz
nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar.bz2
nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.tar.xz
nixos-e0f73777601e56a1dec00d1d2b015fe3af5aba9c.zip
gitolite on odin
Diffstat (limited to 'odin.nix')
-rw-r--r--odin.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index e2f95f9d..cc0b70f6 100644
--- a/odin.nix
+++ b/odin.nix
@@ -404,6 +404,22 @@
404 }; 404 };
405 }; 405 };
406 406
407 services.gitolite = {
408 enable = true;
409 adminPubkey = buildins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles);
410 dataDir = "/srv/git";
411 user = "gitolite";
412 group = "git";
413 enableGitAnnex = true;
414 extraGitoliteRc = ''
415 $RC{LOG_DEST} = 'syslog';
416 $RC{GROUPLIST_PGM} = 'printf "@self-key-managers"';
417 $RC{HOSTNAME} = '${networking.hostName}';
418 $RC{LOCAL_CODE} = "$rc{GL_ADMIN_BASE}/local";
419 push(@{$RC{ENABLE}}, qw(create fork D repo-specific-hooks macros git-annex-shell ua));
420 '';
421 };
422
407 systemd.status-mail = { 423 systemd.status-mail = {
408 recipient = "root@odin.asgard.yggdrasil"; 424 recipient = "root@odin.asgard.yggdrasil";
409 onFailure = [ "nixos-upgrade" 425 onFailure = [ "nixos-upgrade"