diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-24 09:50:16 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-24 09:50:16 +0530 |
| commit | 21265ba643f1c12ad40e5195de8a3a97682adbde (patch) | |
| tree | 9a73872c8add9bf82a7e20ccac436bcc965a69c5 /git | |
| parent | 275903e8ecc9161c6c690a83ca5b1eb7b67899a4 (diff) | |
| download | home-manager-config-21265ba643f1c12ad40e5195de8a3a97682adbde.tar.gz home-manager-config-21265ba643f1c12ad40e5195de8a3a97682adbde.zip | |
Too many changes to count.
Diffstat (limited to 'git')
| -rw-r--r-- | git/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/default.nix b/git/default.nix index 973b4b6..5a32294 100644 --- a/git/default.nix +++ b/git/default.nix @@ -1,14 +1,14 @@ -{ lib, ... }: +{ lib, config, ... }: { 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 $HOME/.cache/git/credential"; + credential.helper = "store --file ${config.xdg.cacheHome}/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"; + home.activation.createGitCacheDirectory = lib.hm.dag.entryAfter [ "writeBoundary" ] "mkdir -p ${config.xdg.cacheHome}/git"; } |
