summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-11-08 23:17:00 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2015-11-08 23:17:00 +0100
commit89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402 (patch)
tree7e2def10e56ae988cfada5876224f4e808b53a72 /ymir.nix
parente4fcb822a6750b12b17cb60be79c1906e5f3bd71 (diff)
downloadnixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar
nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar.gz
nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar.bz2
nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar.xz
nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.zip
git-daemon on ymir
Diffstat (limited to 'ymir.nix')
-rw-r--r--ymir.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index 9a6459cd..5f6af75f 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -13,7 +13,7 @@ let
13 cert = "certs/${name}.crt"; 13 cert = "certs/${name}.crt";
14 }; 14 };
15 }; 15 };
16in { 16in rec {
17 imports = 17 imports =
18 [ 18 [
19 ./ymir-hw.nix 19 ./ymir-hw.nix
@@ -175,4 +175,13 @@ in {
175 adminPubkey = builtins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles); 175 adminPubkey = builtins.readFile (builtins.head (import ./users/gkleen.nix).openssh.authorizedKeys.keyFiles);
176 dataDir = "/srv/git"; 176 dataDir = "/srv/git";
177 }; 177 };
178 users.groups."git" = {
179 members = [ "gitolite"
180 ];
181 };
182
183 services.gitDaemon = {
184 enable = true;
185 basePath = services.gitolite.dataDir;
186 };
178} 187}