aboutsummaryrefslogtreecommitdiff
path: root/modules/home/tools
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/tools')
-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";
- };
};
};
}