feat(nixos): migrate gitconfig to home-manager
This commit is contained in:
parent
a9d8d63249
commit
fc987c2569
2 changed files with 11 additions and 0 deletions
9
home.nix
9
home.nix
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue