diff options
author | tdback <tyler@tdback.net> | 2025-01-20 19:40:28 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-20 19:40:28 -0500 |
commit | 97709964e4318d9226ca1188879e2b52b54771c4 (patch) | |
tree | 6f9bd02cd6f0da993a665cf1be10b939a625d057 /users/tdback/modules/git | |
parent | 6deaea4cc8a4fcb5a3bb4fa9b0f60472452bfae6 (diff) |
feat: rework email module
Diffstat (limited to 'users/tdback/modules/git')
-rw-r--r-- | users/tdback/modules/git/default.nix | 12 |
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"; }; } |