summaryrefslogtreecommitdiff
path: root/nix/modules/cgit.nix
blob: 54eb90c77c2a8727352bfaa62629c5008506a949 (plain)
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
{ lib, config, ... }:
{
  services.cgit."my-projects" = {
    enable = true;
    scanPath = "/srv/git"; 
    settings = {
      root-title = "Nullring Git Server";
      root-desc = "Projects and cool things";
      enable-commit-graph = 1;
      enable-log-filecount = 1;
      enable-log-linecount = 1;
      enable-index-owner = 0;
      clone-prefix = "https://git.${config.monorepo.vars.orgHost}";
      enable-tree-linenumbers = 1;
      strict-export = "git-daemon-export-ok";
    };
    gitHttpBackend = {
      enable = true;
      checkExportOkFiles = true;
    };
    nginx = {
      virtualHost = "git.${config.monorepo.vars.orgHost}";
    };
  };
}