mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-14 20:56:36 +00:00
24 lines
472 B
Nix
24 lines
472 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.gh = {
|
|
enable = true;
|
|
gitCredentialHelper = {
|
|
enable = true;
|
|
hosts = [ "https://github.com" "https://github.example.com" ];
|
|
};
|
|
};
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
signing.signer = "path-to-gpg";
|
|
};
|
|
|
|
test.stubs.gh = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/git/config
|
|
assertFileContent home-files/.config/git/config \
|
|
${./credential-helper.git.conf}
|
|
'';
|
|
}
|