31 lines
644 B
Nix
31 lines
644 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "Your Name"; # TODO: Customize
|
|
userEmail = "your.email@example.com"; # TODO: Customize
|
|
|
|
extraConfig = {
|
|
init.defaultBranch = "main";
|
|
pull.rebase = true;
|
|
rebase.autoStash = true;
|
|
};
|
|
|
|
aliases = {
|
|
st = "status";
|
|
co = "checkout";
|
|
br = "branch";
|
|
ci = "commit";
|
|
unstage = "reset HEAD --";
|
|
last = "log -1 HEAD";
|
|
visual = "log --graph --oneline --all";
|
|
};
|
|
};
|
|
|
|
# GPG key signing (optional, uncomment if using)
|
|
# programs.gpg.enable = true;
|
|
# services.gpg-agent.enable = true;
|
|
|
|
}
|