From 89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Nov 2015 23:17:00 +0100 Subject: git-daemon on ymir --- ymir.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index 9a6459cd..5f6af75f 100644 --- a/ymir.nix +++ b/ymir.nix @@ -13,7 +13,7 @@ let cert = "certs/${name}.crt"; }; }; -in { +in rec { imports = [ ./ymir-hw.nix @@ -175,4 +175,13 @@ in { adminPubkey = builtins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); dataDir = "/srv/git"; }; + users.groups."git" = { + members = [ "gitolite" + ]; + }; + + services.gitDaemon = { + enable = true; + basePath = services.gitolite.dataDir; + }; } -- cgit v1.2.3