1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/git/git-difftastic.nix
Bruno BELANYI 929535c308 git: difftastic: use 'option' attrset
This will avoid having to enumerate and hard-code default values.
2025-10-06 09:41:50 -05:00

23 lines
504 B
Nix

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