diff --git a/modules/programs/git.nix b/modules/programs/git.nix index 78346c6ab..4b2912e65 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -348,13 +348,12 @@ in { }) (mkIf cfg.delta.enable { - programs.git.iniContent = - let deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta"; - in { - core.pager = deltaCommand; - interactive.diffFilter = "${deltaCommand} --color-only"; - delta = cfg.delta.options; - }; + programs.git.iniContent = let deltaCommand = "${pkgs.delta}/bin/delta"; + in { + core.pager = deltaCommand; + interactive.diffFilter = "${deltaCommand} --color-only"; + delta = cfg.delta.options; + }; }) ]); } diff --git a/tests/modules/programs/git/git.nix b/tests/modules/programs/git/git.nix index 981d19348..5417f7ea0 100644 --- a/tests/modules/programs/git/git.nix +++ b/tests/modules/programs/git/git.nix @@ -82,10 +82,8 @@ in { nixpkgs.overlays = [ (self: super: { git-lfs = pkgs.writeScriptBin "dummy-git-lfs" ""; - gitAndTools = super.gitAndTools // { - delta = pkgs.writeScriptBin "dummy-delta" "" // { - outPath = "@delta@"; - }; + delta = pkgs.writeScriptBin "dummy-delta" "" // { + outPath = "@delta@"; }; }) ];