aboutsummaryrefslogtreecommitdiff
path: root/modules/home/tools/git
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-08-09 16:55:12 -0700
committerCaroline Larimore <caroline@larimo.re>2025-08-09 16:55:12 -0700
commite86fd609d06f011e798dafda07863f46cf6d8a56 (patch)
treec32ccef018331b02f1d39dd61c30996c83130029 /modules/home/tools/git
parentffe8e9870f8f82c58e53ec60c22a843cad04d125 (diff)
git: set default branch name
Diffstat (limited to 'modules/home/tools/git')
-rw-r--r--modules/home/tools/git/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/home/tools/git/default.nix b/modules/home/tools/git/default.nix
index 1780d80..06ce017 100644
--- a/modules/home/tools/git/default.nix
+++ b/modules/home/tools/git/default.nix
@@ -39,7 +39,11 @@ in {
ignores = [
"*~"
"*.swp"
- ];
+ ];
+
+ extraConfig = {
+ init.defaultBranch = "main";
+ };
};
};
}