summaryrefslogtreecommitdiff
path: root/config/services/git/cgit.nix
blob: e146671b43d6b88b2ad9a9a40edcf434c782f442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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" ];
}