dotfiles/modules/git.nix
James Walker b3125f777a
🚚 move packages to athens
trying to keep dotfiles just for... dotfiles in home-manager
2023-02-15 12:11:18 -05:00

38 lines
760 B
Nix

{ config, lib, pkgs, ... }:
{
programs = {
gh = {
enable = true;
settings = {
git_protocol = "ssh";
};
};
git = {
enable = true;
userName = "James Walker";
userEmail = "walkah@walkah.net";
aliases = {
lg =
"log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
st = "status -s";
undo = "reset HEAD~1 --mixed";
};
extraConfig = {
github.user = "walkah";
init.defaultBranch = "main";
pull.rebase = true;
rebase.autoStash = true;
};
signing = {
key = "8896FEC44D47A81C";
signByDefault = true;
};
};
};
}