feat(nixos): migrate gitconfig to home-manager

This commit is contained in:
Mohammad Rafiq 2025-02-22 18:28:56 +08:00
parent a9d8d63249
commit fc987c2569
2 changed files with 11 additions and 0 deletions

View file

@ -17,10 +17,19 @@
ripgrep
];
home.sessionVariables = {
GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
};
programs.git = {
enable = true;
userName = "Mohammad Rafiq";
userEmail = "mohammadrafiq567@gmail.com";
extraConfig = {
init.defaultBranch = "prime";
push.autoSetupRemote = true;
pull.rebase = false;
};
};
#TODO add neovim option