summaryrefslogtreecommitdiff
path: root/config/services/git/cgit.nix
blob: 9f4fb48cb4cb7d52d44723f9928014ef7c0cd83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, ... }:
{
  services.cgit.default = {
    enable = true;
    scanPath = "/srv/git";
    gitHttpBackend.enable = false;
    nginx = {
      virtualHost = "${config.networking.hostName}.aristote.mesh";
      location = "/git/";
    };
    extraConfig = ''
      root-title=repositories
      root-desc=by Quentin Aristote
    '';
  };

  users.users.cgit.extraGroups = [ "git" ];

  systemd.services.fcgiwrap-cgit-default.personal.monitor = true;
}