mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
22 lines
432 B
Nix
22 lines
432 B
Nix
{
|
|
programs.git = {
|
|
enable = true;
|
|
settings = {
|
|
user = {
|
|
name = "John Doe";
|
|
email = "user@example.org";
|
|
};
|
|
};
|
|
|
|
signing = {
|
|
signer = "path-to-gpg";
|
|
key = null;
|
|
signByDefault = true;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/git/config
|
|
assertFileContent home-files/.config/git/config ${./git-without-signing-key-id-expected.conf}
|
|
'';
|
|
}
|