git: set default branch to "main"

This commit is contained in:
Katherina Walshe-Grey 2024-06-30 10:32:49 +01:00
parent a3c3c9c12c
commit a0d06b6c0a
3 changed files with 14 additions and 0 deletions

12
home/git.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
programs.git = {
enable = true;
extraConfig = {
init = {
defaultBranch = "main";
};
};
};
}