dotfiles/home/features/cli/git.nix

20 lines
487 B
Nix
Raw Normal View History

2023-08-04 15:34:11 +00:00
{ 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 = {
init.defaultBranch = "main";
pull.rebase = false;
};
2023-07-29 02:09:22 +00:00
};
2023-08-04 15:34:11 +00:00
}