nix-config/modules/home/shell/git.nix
2024-09-29 00:41:05 -04:00

26 lines
552 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 = true;
signing.signByDefault = true;
lfs.enable = true;
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
};
};
gh = {
enable = true;
extensions = [gh-copilot gh-dash gh-markdown-preview];
};
};
}