mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 09:22:19 +00:00
fix git config
This commit is contained in:
parent
61d6f56435
commit
34d3e9bcc2
1 changed files with 19 additions and 15 deletions
|
@ -1,16 +1,20 @@
|
|||
{ lib, ... }: {
|
||||
programs.git = {
|
||||
enable = lib.mkDefault true;
|
||||
delta.enable = true;
|
||||
aliases = {
|
||||
graph = "log --decorate --oneline --graph";
|
||||
fast-forward = "merge --ff-only";
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
userEmail = lib.concatStringsSep "" ["john@bo" "wdre.net"];
|
||||
userName = lib.mkDefault "John Bowdre";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue