1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 13:01:09 +01:00
home-manager/tests/modules/programs/git/git-difftastic.nix
2025-10-06 08:06:53 -05:00

18 lines
400 B
Nix

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