aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules/git/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tdback/modules/git/default.nix')
-rw-r--r--users/tdback/modules/git/default.nix12
1 files changed, 9 insertions, 3 deletions
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";
};
}