2.home-manager/tests/modules/programs/git/git-difftastic.nix
Brian Lyles 7d3d323e90 git: add extraArgs option for difftastic
This option will cover any other arguments that aren't made available
with dedicated options.
2025-10-06 08:06:53 -05:00

23 lines
495 B
Nix

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