From aba78f26619e30bdb3634104a4bbe60b18bf541a Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:35:45 +0530 Subject: Fixed the git configuration and its credential helper. --- git/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/git/default.nix b/git/default.nix index 8854e2f..973b4b6 100644 --- a/git/default.nix +++ b/git/default.nix @@ -1,8 +1,14 @@ -{ ... }: +{ lib, ... }: { programs.git.enable = true; programs.git.userEmail = "54011232+arpitchakladar@users.noreply.github.com"; programs.git.userName = "Arpit Chakladar"; - programs.git.extraConfig.credential.helper = "store --file ~/.cache/git/credential"; + programs.git.extraConfig = { + credential.helper = "store --file $HOME/.cache/git/credential"; + core.askPass = ""; + }; + + # The base directory of the credential file must exist + home.activation.createGitCacheDirectory = lib.hm.dag.entryAfter [ "writeBoundary" ] "mkdir -p $HOME/.cache/git"; } -- cgit v1.2.3