mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
This adds the ability to enable the patdiff program as git differ. Website of the project: https://opensource.janestreet.com/patdiff/
20 lines
452 B
Nix
20 lines
452 B
Nix
{
|
|
programs.git = {
|
|
enable = true;
|
|
signing = {
|
|
signer = "path-to-gpg";
|
|
format = "openpgp";
|
|
key = "00112233445566778899AABBCCDDEEFF";
|
|
signByDefault = true;
|
|
};
|
|
userEmail = "user@example.org";
|
|
userName = "John Doe";
|
|
|
|
patdiff.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/git/config
|
|
assertFileContent home-files/.config/git/config ${./git-patdiff-expected.conf}
|
|
'';
|
|
}
|