refactor(git): move git home-manager config to its own module
This commit is contained in:
parent
e6623278a2
commit
09d9eb1d22
3 changed files with 20 additions and 13 deletions
|
@ -2,7 +2,8 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
../../modules/tmux.nix
|
||||
../../modules/home-git.nix
|
||||
../../modules/home-tmux.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
@ -15,23 +16,15 @@
|
|||
pkgs.fastfetch
|
||||
pkgs.wl-clipboard
|
||||
];
|
||||
sessionVariables = {
|
||||
GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
git = {
|
||||
bash = {
|
||||
enable = true;
|
||||
userName = "Mohammad Rafiq";
|
||||
userEmail = "mohammadrafiq567@gmail.com";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "prime";
|
||||
push.autoSetupRemote = true;
|
||||
pull.rebase = false;
|
||||
shellAliases = {
|
||||
rebuild = "sudo nixos-rebuild switch --flake";
|
||||
};
|
||||
};
|
||||
|
||||
tealdeer = {
|
||||
enable = true;
|
||||
enableAutoUpdates = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue