fix git config

This commit is contained in:
John Bowdre 2023-08-04 10:34:11 -05:00
parent 61d6f56435
commit 34d3e9bcc2

View file

@ -1,4 +1,8 @@
{ lib, ... }: {
{ lib, ... }:
let
email = lib.concatStringsSep "" [ "john@bo" "wdre.net" ];
in
{
programs.git = {
enable = lib.mkDefault true;
delta.enable = true;
@ -6,11 +10,11 @@
graph = "log --decorate --oneline --graph";
fast-forward = "merge --ff-only";
};
userEmail = lib.concatStringsSep "" ["john@bo" "wdre.net"];
userEmail = lib.mkDefault email;
userName = lib.mkDefault "John Bowdre";
extraConfig = {
init.defaultBranch = "main";
pull.rebase = false;
};
};
}
}