dotfiles/home/features/cli/git.nix
2024-09-04 12:13:37 -05:00

22 lines
No EOL
566 B
Nix

{ lib, ... }:
let
email = lib.concatStringsSep "" [ "john@bo" "wdre.net" ];
in
{
programs.git = {
enable = lib.mkDefault true;
delta.enable = true;
aliases = {
graph = "log --decorate --oneline --graph";
fast-forward = "merge --ff-only";
};
userEmail = lib.mkDefault email;
userName = lib.mkDefault "John Bowdre";
extraConfig = {
gpg.format = "ssh";
init.defaultBranch = "main";
pull.rebase = false;
user.signingKey = "~/.ssh/id_ed25519.pub";
};
};
}