Install and configure gitFull with home-manager

I currently have git installed and configured through home-manager, the relevant config being:

  home.packages = [

  programs.git = {
    extraConfig= {
      pull.rebase = false;
    userName="Alistair Grant";

I’d like to use gitFull instead so that gitk is installed, however changing programs.git to programs.gitFull raises an error that programs.gitFull does not exist. Adding pkgs.gitFull to home.packages causes:

error: collision between `/nix/store/1gldb5a32cncvs2iwylj1y0i6zbahvw2-git-with-svn-2.40.1/bin/git-http-backend' and `/nix/store/xpk2y9w0afsn3lxsi3976a2vciimvh7h-git-2.40.1/bin/git-http-backend'
error: builder for '/nix/store/pxjc0n9x05d0w1km4npgjyr1jw67y0kc-home-manager-path.drv' failed with exit code 255;
       last 1 log lines:
       > error: collision between `/nix/store/1gldb5a32cncvs2iwylj1y0i6zbahvw2-git-with-svn-2.40.1/bin/git-http-backend' and `/nix/store/xpk2y9w0afsn3lxsi3976a2vciimvh7h-git-2.40.1/bin/git-http-backend'
       For full logs, run 'nix log /nix/store/pxjc0n9x05d0w1km4npgjyr1jw67y0kc-home-manager-path.drv'.
error: 1 dependencies of derivation '/nix/store/31q9fwbhivw6l354gvg2cywb4ql14cma-home-manager-generation.drv' failed to build

How should I resolve this?

Thanks very much,

Assuming that I understood correctly (that you want to change the git package that is used by program.git), there is an option for that.
programs.git.package = pkgs.gitFull should do what you want

Thank you!

I didn’t even think to look there, which I should have.