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