summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ymir.nix')
-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;