From 97709964e4318d9226ca1188879e2b52b54771c4 Mon Sep 17 00:00:00 2001 From: tdback Date: Mon, 20 Jan 2025 19:40:28 -0500 Subject: feat: rework email module --- users/tdback/modules/git/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'users/tdback/modules/git') diff --git a/users/tdback/modules/git/default.nix b/users/tdback/modules/git/default.nix index c608c6b..c9b3b6f 100644 --- a/users/tdback/modules/git/default.nix +++ b/users/tdback/modules/git/default.nix @@ -1,9 +1,15 @@ -{ ... }: +{ + config, + ... +}: +let + userName = config.home.username; + userEmail = config.accounts.email.accounts.${userName}.address or "tyler@tdback.net"; +in { programs.git = { enable = true; - userName = "tdback"; - userEmail = "tyler@tdback.net"; + inherit userName userEmail; extraConfig.init.defaultBranch = "main"; }; } -- cgit v1.2.3