git.nix: add difftastic as a git tool

This commit is contained in:
Charlie Root 2024-11-01 20:54:24 +01:00
commit 1a15a9e83f
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -1,10 +1,9 @@
{
lib,
pkgs,
config,
...
}: let
inherit (config.modules.other.system) username;
in {
}: {
programs.git = {
enable = true;
lfs.enable = true;
@ -20,6 +19,7 @@ in {
pull.ff = "only";
gpg.format = "ssh";
commit.gpgsign = "true";
diff.external = "${pkgs.difftastic}/bin/difft";
rebase = {
autoSquash = true;
autoStash = true;