nix-config/modules/home/shell/git.nix

30 lines
624 B
Nix
Raw Permalink Normal View History

2024-05-07 03:23:55 -04:00
{pkgs, ...}:
with pkgs; {
programs = {
git = {
enable = true;
package = gitAndTools.gitFull;
userName = "pupbrained";
userEmail = "mars@pupbrained.xyz";
aliases.pushall = "!git remote | xargs -L1 git push";
2024-05-28 04:08:06 -04:00
delta.enable = true;
2024-05-07 03:23:55 -04:00
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
2024-05-28 04:08:06 -04:00
credential.helper = "libsecret";
2024-05-07 03:23:55 -04:00
};
signing = {
signByDefault = true;
2024-06-13 02:30:20 -04:00
key = "EF82E8CA83FF158C";
2024-05-07 03:23:55 -04:00
};
};
gh = {
enable = true;
extensions = [gh-copilot gh-dash gh-markdown-preview];
};
};
}