summaryrefslogtreecommitdiff
path: root/modules/nixos/cgit.nix
blob: 7be2fdcfe160d53846cf765bc391279a3429b07e (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
{ config, ... } : { # This is for hosting on bosco
  services.cgit = {
    bosco-git = {
      enable = true;
      nginx.location = "/git/";
      nginx.virtualHost = "git.myrmexia.xyz:8081";
      settings = {
        enable-commit-graph = 1;
        enable-http-clone = 0;
      };
      repos = {
        nixos-flake = {
          desc = "A public repo for viewing my nixos config.";
          path = "/srv/git/.flake.git";
        };
      };
    };
    # caddy = {
    #   enable = true;
    #   email = "devin.finlinson@pm.me";
    #   virtualhosts."git.myrmexia.xyz".extraConfig = ''
    #     reverse_proxy http://localhost:${toString config.services.cgit.port} ''
    # };
  };
}