41 lines
834 B
Nix
41 lines
834 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.git;
|
|
in {
|
|
imports = [./lazygit.nix];
|
|
|
|
options = {
|
|
git.enable = lib.mkEnableOption "git";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
git.lazygit.enable = lib.mkDefault true;
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
extraConfig = {
|
|
fetch.parallel = 0;
|
|
init.defaultBranch = "main";
|
|
pull.rebase = true;
|
|
};
|
|
delta = {
|
|
enable = true;
|
|
options = {
|
|
decorations = {
|
|
commit-decoration-style = "bold yellow box ul";
|
|
file-decoration-style = "none";
|
|
file-style = "bold yellow ul";
|
|
};
|
|
features = "decorations";
|
|
whitespace-error-style = "22 reverse";
|
|
};
|
|
};
|
|
userEmail = "max.kaenner@gmail.com";
|
|
userName = "Max Känner";
|
|
};
|
|
};
|
|
}
|