1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-17 05:35:06 +01:00
home-manager/tests/modules/programs/gh/credential-helper.nix

21 lines
419 B
Nix
Raw Permalink Normal View History

{
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [ "https://github.com" "https://github.example.com" ];
};
};
programs.git = {
enable = true;
signing.signer = "path-to-gpg";
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config \
${./credential-helper.git.conf}
'';
}