summaryrefslogtreecommitdiff
path: root/users/seth/programs/git.nix
blob: 73269fd726df38c2e9f281d47a32d07c4b9e4ed4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{config, ...}: {
	programs.git = {
		enable = !config.seth.standalone;
		extraConfig = {
			init = {defaultBranch = "main";};
			safe = {directory = "/etc/nixos";};
		};
		signing = {
			key = "D31BD0D494BBEE86";
			signByDefault = true;
		};
		userEmail = "[email protected]";
		userName = "seth";
	};
	services.gpg-agent.extraConfig = ''
		pinentry-program /run/current-system/sw/bin/pinentry
	'';
}