diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-08 23:17:00 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-08 23:17:00 +0100 |
commit | 89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402 (patch) | |
tree | 7e2def10e56ae988cfada5876224f4e808b53a72 | |
parent | e4fcb822a6750b12b17cb60be79c1906e5f3bd71 (diff) | |
download | nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar.gz nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar.bz2 nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.tar.xz nixos-89c3c8fd352f14d6847f8fd19c3c5ae7d4dc9402.zip |
git-daemon on ymir
-rw-r--r-- | ymir.nix | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -13,7 +13,7 @@ let | |||
13 | cert = "certs/${name}.crt"; | 13 | cert = "certs/${name}.crt"; |
14 | }; | 14 | }; |
15 | }; | 15 | }; |
16 | in { | 16 | in 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 | } |