2.home-manager/tests/modules/programs/git/git-difftastic.nix
Brian Lyles 1652349e57 git: add option for difftastic context
The ability to control the number of contextual lines is a basic
expectation of a diff program, so a dedicated option feels warranted.
2025-10-06 08:06:53 -05:00

19 lines
419 B
Nix

{
programs.git = {
enable = true;
signing.signer = "path-to-gpg";
difftastic = {
enable = true;
enableAsDifftool = true;
background = "dark";
color = "always";
context = 5;
display = "inline";
};
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config ${./git-difftastic-expected.conf}
'';
}