summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-01-13 00:27:43 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-01-13 00:27:43 +0100
commit9999dc90758cb9d55ab13d38335818b611910ebf (patch)
tree85dd97008a7ba98e1f1e6af01a495c726acff0e9
parent80e11704074be3a963588780e4c459dfc6856a60 (diff)
downloadnixos-9999dc90758cb9d55ab13d38335818b611910ebf.tar
nixos-9999dc90758cb9d55ab13d38335818b611910ebf.tar.gz
nixos-9999dc90758cb9d55ab13d38335818b611910ebf.tar.bz2
nixos-9999dc90758cb9d55ab13d38335818b611910ebf.tar.xz
nixos-9999dc90758cb9d55ab13d38335818b611910ebf.zip
first stab at system config
-rw-r--r--ymir.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index 0c1bf437..8676b0f1 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -170,6 +170,32 @@ in rec {
170 enable = true; 170 enable = true;
171 httpConfig = builtins.readFile ./custom/ymir.nginx; 171 httpConfig = builtins.readFile ./custom/ymir.nginx;
172 }; 172 };
173 users.extraUsers."nginx".extraGroups = ["uwsgi"];
174
175 services.uwsgi = {
176 enable = true;
177 plugins = ["cgi"];
178 instance = {
179 type = "normal";
180 processes = 1;
181 threads = 8;
182 cgi = "${pkgs.cgit}/bin/cgit";
183 };
184 };
185
186 users.extraUsers."uwsgi".extraGroups = ["git"];
187
188 environment.etc."cgitrc" = {
189 enable = true;
190 text = ''
191 robots=noindex, nofollow
192 virtual-root=/
193 enable-git-config=1
194
195 project-list=/srv/git/projects.list
196 scan-path=/srv/git/repositories
197 '';
198 };
173 199
174 services.gitolite = { 200 services.gitolite = {
175 enable = true; 201 enable = true;