Git: Difference between revisions

imported>Profpatsch
nixpkgs management git-gc section
imported>Ikovnatsky
Add git-credential-helper with libsecret
Line 23: Line 23:
     userEmail = "johndoe@example.com";
     userEmail = "johndoe@example.com";
   };
   };
</syntaxhighlight>
Configure git-credential-helper with libsecret:
<syntaxhighlight lang="nix">
{ pkgs, ... }:
{
  programs.git = {
    enable = true;
    extraConfig = {
      credential.helper = "${
          pkgs.git.override { withLibsecret = true; }
        }/bin/git-credential-libsecret";
    };
  };
}
</syntaxhighlight>
</syntaxhighlight>