nixos-config/home/git.nix
Sridhar Ratnakumar 04a3ddeb3e home.nix no more
2022-04-08 22:48:23 -04:00

30 lines
724 B
Nix

{ pkgs, ... }:
{
home.packages = [ pkgs.tig ];
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;
};
};
}