diff --git a/modules/other/git.nix b/modules/other/git.nix index 48a5a3f..fb50be3 100644 --- a/modules/other/git.nix +++ b/modules/other/git.nix @@ -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;