2021-11-04 16:42:44 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.gh = {
|
|
|
|
enable = true;
|
2023-08-08 10:19:01 +00:00
|
|
|
gitCredentialHelper = {
|
|
|
|
enable = true;
|
|
|
|
hosts = [ "https://github.com" "https://github.example.com" ];
|
|
|
|
};
|
2021-11-04 16:42:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.git.enable = true;
|
|
|
|
|
2023-01-10 09:35:00 +00:00
|
|
|
test.stubs.gh = { };
|
2021-11-04 16:42:44 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/git/config
|
|
|
|
assertFileContent home-files/.config/git/config \
|
|
|
|
${./credential-helper.git.conf}
|
|
|
|
'';
|
|
|
|
}
|