1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

difftastic: new module

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-10-16 21:10:33 -05:00
parent 16cd8abad6
commit 111329b475
5 changed files with 147 additions and 122 deletions

View file

@ -10,5 +10,4 @@
git-with-hooks = ./git-with-hooks.nix;
git-with-maintenance = ./git-with-maintenance.nix;
git-patdiff = ./git-patdiff.nix;
git-difftastic = ./git-difftastic.nix;
}

View file

@ -1,12 +0,0 @@
[diff]
external = "@difftastic@/bin/difft --background dark --color always --context 5 --display inline --sort-paths --tab-width 8"
tool = "difftastic"
[difftool "difftastic"]
cmd = "@difftastic@/bin/difft --background dark --color always --context 5 --display inline --sort-paths --tab-width 8 $LOCAL $REMOTE"
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"

View file

@ -1,23 +0,0 @@
{
programs.git = {
enable = true;
signing.signer = "path-to-gpg";
difftastic = {
enable = true;
enableAsDifftool = true;
options = {
background = "dark";
color = "always";
context = 5;
display = "inline";
tab-width = 8;
sort-paths = true;
};
};
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config ${./git-difftastic-expected.conf}
'';
}