summaryrefslogtreecommitdiff
path: root/users/seth/mixins/gh.nix
blob: f0ee96b622cad1c0d1cea10f7c0715b8df5bf0dd (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,
  lib,
  ...
}:

{
  programs.gh = {
    enable = lib.mkDefault config.programs.git.enable;

    settings = {
      git_protocol = "https";
      editor = "nvim";
      prompt = "enabled";
    };

    gitCredentialHelper = {
      enable = true;
      hosts = [
        "https://github.com"
        "https://github.example.com"
      ];
    };
  };
}