diff options
| -rw-r--r-- | git/default.nix | 10 |
1 files 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"; } |
