Add git config to home.nix
This commit is contained in:
48
nix/home.nix
48
nix/home.nix
@@ -26,7 +26,6 @@
|
|||||||
fzf
|
fzf
|
||||||
ncdu
|
ncdu
|
||||||
ripgrep
|
ripgrep
|
||||||
git
|
|
||||||
tmux
|
tmux
|
||||||
kitty
|
kitty
|
||||||
nodePackages.pyright
|
nodePackages.pyright
|
||||||
@@ -54,4 +53,51 @@
|
|||||||
programs.emacs.extraPackages = epkgs: [ epkgs.vterm ];
|
programs.emacs.extraPackages = epkgs: [ epkgs.vterm ];
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
aliases = {
|
||||||
|
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
||||||
|
};
|
||||||
|
extraConfig = {
|
||||||
|
user.name = "Tim McCarthy";
|
||||||
|
user.email = "thoomfish@gmail.com";
|
||||||
|
color.ui = true;
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
push.default = "simple";
|
||||||
|
pull.rebase = true;
|
||||||
|
transfer.fsckobjects = true;
|
||||||
|
credential.helper = "store";
|
||||||
|
};
|
||||||
|
|
||||||
|
ignores = [
|
||||||
|
".DS_Store"
|
||||||
|
".projectile"
|
||||||
|
".idea"
|
||||||
|
"*.sw?"
|
||||||
|
"*.pyc"
|
||||||
|
".#*"
|
||||||
|
".nrepl-port"
|
||||||
|
".rebel_readline_history"
|
||||||
|
".auctex-auto"
|
||||||
|
"*.synctex.gz"
|
||||||
|
".ccls-cache"
|
||||||
|
".lein-repl-history"
|
||||||
|
"ompile_commands.json"
|
||||||
|
"*.egg-info"
|
||||||
|
".envrc"
|
||||||
|
".vscode"
|
||||||
|
".direnv"
|
||||||
|
".ipynb_checkpoints"
|
||||||
|
"nfer-out"
|
||||||
|
".cache"
|
||||||
|
];
|
||||||
|
|
||||||
|
includes = [
|
||||||
|
{
|
||||||
|
condition = "gitdir/i:~/SRI/";
|
||||||
|
contents.user.email = "tim.mccarthy@sri.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user