mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
16 lines
477 B
Nix
16 lines
477 B
Nix
{
|
|
programs.diff-so-fancy = {
|
|
enable = true;
|
|
settings = {
|
|
markEmptyLines = false;
|
|
changeHunkIndicators = true;
|
|
};
|
|
};
|
|
programs.git.enable = true;
|
|
|
|
nmt.script = ''
|
|
# Git config should NOT contain diff-so-fancy configuration since enableGitIntegration is false by default
|
|
assertFileNotRegex home-files/.config/git/config 'pager = .*/diff-so-fancy'
|
|
assertFileNotRegex home-files/.config/git/config 'diffFilter = .*/diff-so-fancy'
|
|
'';
|
|
}
|