dotfiles/home/modules/tui/git.nix

21 lines
523 B
Nix
Raw Normal View History

2023-08-04 15:34:11 +00:00
{ lib, ... }:
2024-12-20 01:30:06 +00:00
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";
2023-07-29 02:09:22 +00:00
};
2024-12-20 01:30:06 +00:00
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";
};
};
}