blob: 49ea0bace3ac96cf693bb26f340ef421212569d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ config, pkgs, lib, ... }:
{
services.cgit."main" = {
enable = true;
nginx.virtualHost = "cgit.rory.gay";
package = pkgs.cgit-pink;
scanPath = "/data/nginx/html_git";
settings = {
css = "/cgit.css";
logo = "/cgit.png";
favicon = "/favicon.ico";
about-filter = "${pkgs.cgit-pink}/lib/cgit/filters/about-formatting.sh";
source-filter = "${pkgs.cgit-pink}/lib/cgit/filters/syntax-highlighting.py";
clone-url = (lib.concatStringsSep " " [
"https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL"
"ssh://<user>@git.rory.gay:$CGIT_REPO_URL"
]);
enable-log-filecount = 1;
enable-log-linecount = 1;
enable-git-config = 1;
root-title = "cgit.rory.gay";
root-desc = "Rory&s Git Repositories";
};
};
}
|