aboutsummaryrefslogtreecommitdiffstats
path: root/git/default.nix
blob: 5a3229404881d0fe1a908d7ce28f542772931832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 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 ${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 ${config.xdg.cacheHome}/git";
}