mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
16 lines
447 B
Nix
16 lines
447 B
Nix
{
|
|
programs.diff-highlight = {
|
|
enable = true;
|
|
pagerOpts = [
|
|
"--tabs=4"
|
|
"-RFX"
|
|
];
|
|
};
|
|
programs.git.enable = true;
|
|
|
|
nmt.script = ''
|
|
# Git config should NOT contain diff-highlight configuration since enableGitIntegration is false by default
|
|
assertFileNotRegex home-files/.config/git/config 'pager = .*/diff-highlight'
|
|
assertFileNotRegex home-files/.config/git/config 'diffFilter = .*/diff-highlight'
|
|
'';
|
|
}
|