Skip to content

Commit

Permalink
Fix credential helper on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jul 1, 2024
1 parent 35462c3 commit 4d402f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion home/users/christian/git/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ let

cfg = config.custom.users.christian.git;

credentialHelper =
if pkgs.stdenv.isDarwin
then "${pkgs.gitFull}/share/git/contrib/credential/osxkeychain/git-credential-osxkeychain"
else "${pkgs.gitFull}/share/git/contrib/credential/libsecret/git-credential-libsecret";

in

{
Expand Down Expand Up @@ -48,7 +53,7 @@ in
};

extraConfig = {
credential.helper = "${pkgs.gitFull}/share/git/contrib/credential/libsecret/git-credential-libsecret";
credential.helper = credentialHelper;
maintenance.repo = [
"${config.home.homeDirectory}/.nix-config"
"${config.home.homeDirectory}/code/nixcfg"
Expand Down

0 comments on commit 4d402f7

Please sign in to comment.