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-so-fancy/diff-so-fancy-basic.nix
Austin Horstman 16cd8abad6 tests/diff-so-fancy: add
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-10-19 10:24:15 -05:00

14 lines
449 B
Nix

{
programs.diff-so-fancy = {
enable = true;
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'
'';
}