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
|
@ -16,6 +16,8 @@ What is currently missing:
|
||||||
- Whatever else I think of
|
- Whatever else I think of
|
||||||
|
|
||||||
v0.1.0 will be adequate. The milestones to reach are:
|
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
|
- Modularise the nix files
|
||||||
- Set up Neovim as a worthy VS Code replacement
|
- Set up Neovim as a worthy VS Code replacement
|
||||||
- terminal in bottom pane
|
- terminal in bottom pane
|
||||||
|
|
9
home.nix
9
home.nix
|
@ -17,10 +17,19 @@
|
||||||
ripgrep
|
ripgrep
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
|
||||||
|
};
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Mohammad Rafiq";
|
userName = "Mohammad Rafiq";
|
||||||
userEmail = "mohammadrafiq567@gmail.com";
|
userEmail = "mohammadrafiq567@gmail.com";
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultBranch = "prime";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
pull.rebase = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#TODO add neovim option
|
#TODO add neovim option
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue