git: ship difftastic as a standalone program

This commit is contained in:
2025-07-21 23:49:23 +00:00
parent 58b87e32e3
commit 1411add8ba
2 changed files with 4 additions and 1 deletions

View File

@@ -517,6 +517,8 @@ in
# auth token, preferences
delfin.persist.byStore.private = [ ".config/delfin" ];
difftastic.sandbox.autodetectCliPaths = "existing";
dig.sandbox.net = "all";
dmidecode.sandbox.extraPaths = [ "/sys/firmware/dmi" ];

View File

@@ -19,6 +19,7 @@ in
'';
});
suggestedPrograms = [
"difftastic"
"ssh"
];
sandbox.net = "clearnet";
@@ -57,7 +58,7 @@ in
# - <https://difftastic.wilfred.me.uk/git.html>
diff.tool = "difftastic";
difftool.prompt = false;
"difftool \"difftastic\"".cmd = ''${lib.getExe pkgs.difftastic} "$LOCAL" "$REMOTE"'';
"difftool \"difftastic\"".cmd = ''difft "$LOCAL" "$REMOTE"'';
# now run `git difftool` to use difftastic git
# render dates as YYYY-MM-DD HH:MM:SS +TZ