2021-10-19 06:43:52 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.gh = {
|
|
|
|
enable = true;
|
2023-08-01 01:40:37 +02:00
|
|
|
gitCredentialHelper = {
|
|
|
|
enable = true;
|
|
|
|
hosts = [ "https://github.com" "https://github.example.com" ];
|
|
|
|
};
|
2021-10-19 06:43:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.git.enable = true;
|
|
|
|
|
2022-01-11 04:20:49 +01:00
|
|
|
test.stubs.gh = { };
|
2021-10-19 06:43:52 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/git/config
|
|
|
|
assertFileContent home-files/.config/git/config \
|
|
|
|
${./credential-helper.git.conf}
|
|
|
|
'';
|
|
|
|
}
|