aboutsummaryrefslogtreecommitdiff
path: root/modules/home/tools/git
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-11-18 14:43:09 -0800
committerCaroline Larimore <caroline@larimo.re>2025-11-18 14:43:09 -0800
commit7005f19a913a833a479af887610165d430529f81 (patch)
tree99e20d1ae3b395fba26559aadb886e52a1237e85 /modules/home/tools/git
parente634c4748fa47285fd50d60bea3a03cdc20d92c4 (diff)
flake: update
Diffstat (limited to 'modules/home/tools/git')
-rw-r--r--modules/home/tools/git/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/home/tools/git/default.nix b/modules/home/tools/git/default.nix
index 06ce017..bd7da60 100644
--- a/modules/home/tools/git/default.nix
+++ b/modules/home/tools/git/default.nix
@@ -28,8 +28,14 @@ in {
programs.git = {
enable = true;
- userName = cfg.name;
- userEmail = cfg.email;
+ settings = {
+ user = {
+ name = cfg.name;
+ email = cfg.email;
+ };
+
+ init.defaultBranch = "main";
+ };
signing = {
key = cfg.key;
@@ -40,10 +46,6 @@ in {
"*~"
"*.swp"
];
-
- extraConfig = {
- init.defaultBranch = "main";
- };
};
};
}