nixos-config/modules/shell/git/home.nix
2023-11-06 02:01:49 -05:00

32 lines
519 B
Nix

{
config,
lib,
pkgs,
user,
...
}: {
programs.git = {
enable = true;
userName = "Glen Goodwin";
userEmail = "glen.goodwin1992@gmail.com";
extraConfig = {
merge = {
ff = "only";
};
};
};
programs.zsh = {
shellAliases = {
trackme = "git branch --set-upstream-to=origin/$(git symbolic-ref --short HEAD)";
rebasemain = "git pull origin main --rebase";
};
};
home.packages = with pkgs; [
cocogitto
lazygit
gh
pre-commit
];
}