nixos-config/home/git.nix
Sridhar Ratnakumar 52f547ddf4 tig--
2022-04-10 16:33:33 -04:00

30 lines
728 B
Nix

{ pkgs, ... }:
{
home.packages = [ pkgs.lazygit ];
programs.git = {
package = pkgs.gitAndTools.gitFull;
enable = true;
userName = "Sridhar Ratnakumar";
userEmail = "srid@srid.ca";
aliases = {
co = "checkout";
ci = "commit";
cia = "commit --amend";
s = "status";
st = "status";
b = "branch";
# p = "pull --rebase";
pu = "push";
};
ignores = [ "*~" "*.swp" ];
extraConfig = {
init.defaultBranch = "master"; # based.
core.editor = "nvim";
#protocol.keybase.allow = "always";
credential.helper = "store --file ~/.git-credentials";
pull.rebase = "false";
# For supercede
core.symlinks = true;
};
};
}