2024-05-18 20:22:28 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.git;
|
|
|
|
in {
|
2024-05-18 14:33:22 +02:00
|
|
|
imports = [./lazygit.nix];
|
|
|
|
|
2024-05-18 20:22:28 +02:00
|
|
|
options = {
|
|
|
|
git.enable = lib.mkEnableOption "git";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
git.lazygit.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
programs.git = {
|
2024-03-09 11:30:13 +01:00
|
|
|
enable = true;
|
2024-05-18 20:22:28 +02:00
|
|
|
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";
|
2024-03-09 11:30:13 +01:00
|
|
|
};
|
|
|
|
};
|
2024-05-18 20:22:28 +02:00
|
|
|
userEmail = "max.kaenner@gmail.com";
|
|
|
|
userName = "Max Känner";
|
2024-03-09 11:30:13 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|