diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-03 20:14:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-03 20:14:25 +0200 |
commit | e0f73777601e56a1dec00d1d2b015fe3af5aba9c (patch) | |
tree | 7deaefba98c912e05a81105b871f5585cd0e85ef /odin.nix | |
parent | b8681db85c2237c84b2e7c045210f86a30106942 (diff) | |
download | nixos-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.nix | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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" |