nix-config/modules/home/shell/git.nix
2024-12-19 00:33:27 -05:00

31 lines
603 B
Nix

{pkgs, ...}:
with pkgs; {
programs = {
git = {
enable = true;
package = gitAndTools.gitFull;
userName = "pupbrained";
userEmail = "mars@pupbrained.xyz";
aliases.pushall = "!git remote | xargs -L1 git push";
delta.enable = false;
signing.signByDefault = true;
lfs.enable = true;
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
};
};
gh = {
enable = true;
extensions = [
gh-copilot
gh-dash
gh-markdown-preview
gh-notify
];
};
};
}