aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/gi/git-back/module.nix
blob: 90be34526784e96b3342d5a3adcd4ff5e42928d4 (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
30
31
32
33
{
  config,
  lib,
  ...
}: let
  cfg = config.vhack.git-back;
in {
  options.vhack.git-back = {
    enable = lib.mkEnableOption "Back integration into git-server";

    domain = lib.mkOption {
      type = lib.types.str;
      description = "The domain where to deploy back";
    };
  };

  config = lib.mkIf cfg.enable {
    # vhack.back = {
    #   enable = true;
    #
    #   user = "git";
    #   group = "git";
    #
    #   settings = {
    #     scan_path = "${config.services.gitolite.dataDir}/repositories";
    #     project_list = "${config.services.gitolite.dataDir}/projects.list";
    #     root_url = "https://${cfg.domain}";
    #   };
    # };
    #
    # vhack.anubis.instances."${cfg.domain}".target = "http://127.0.0.1:8000";
  };
}