1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/diff-highlight/diff-highlight-basic.nix
Austin Horstman 486487b5e9 tests/diff-highlight: add
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-10-19 10:24:15 -05:00

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'
'';
}