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

@ -16,6 +16,8 @@ What is currently missing:
- Whatever else I think of
v0.1.0 will be adequate. The milestones to reach are:
- [ ] Set up SSH keys for GitHub and other machines
- Update home-manager so I don't have to rebuild the entire system to change configs
- Modularise the nix files
- Set up Neovim as a worthy VS Code replacement
- terminal in bottom pane

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