fork/home-manager

git clone https://git.julia.blue/fork/home-manager

satoqzgh: option to enable helper for additional hosts (#4288)4fd794d3

master
423 B21 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  programs.gh = {
5    enable = true;
6    gitCredentialHelper = {
7      enable = true;
8      hosts = [ "https://github.com" "https://github.example.com" ];
9    };
10  };
11
12  programs.git.enable = true;
13
14  test.stubs.gh = { };
15
16  nmt.script = ''
17    assertFileExists home-files/.config/git/config
18    assertFileContent home-files/.config/git/config \
19      ${./credential-helper.git.conf}
20  '';
21}