home-manager/tests/modules/programs/gh/credential-helper.nix
Anselm Schüler cfe82d9f44
gh: support gh as git credential manager for github.com
Co-authored-by: Sumner Evans <me@sumnerevans.com>
2021-10-21 23:20:25 +02:00

22 lines
364 B
Nix

{ config, lib, pkgs, ... }:
{
programs.gh = {
enable = true;
enableGitCredentialHelper = true;
};
programs.git.enable = true;
test.stubs = {
gh = { };
git = { };
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config \
${./credential-helper.git.conf}
'';
}