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";
};
};
};
}

View file

@ -5,6 +5,7 @@
imports = [
../../home/cli.nix
../../home/firefox.nix
../../home/git.nix
../../home/gnome
../../home/libreoffice.nix
../../home/vscode.nix

View file

@ -4,6 +4,7 @@
home-manager.users.qenya = { pkgs, ... }: {
imports = [
../../home/cli.nix
../../home/git.nix
../../home/tmux.nix
];