2024-05-18 20:22:28 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.git;
|
2024-05-18 20:22:28 +02:00
|
|
|
in {
|
2024-05-18 14:33:22 +02:00
|
|
|
imports = [./lazygit.nix];
|
|
|
|
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.git = {
|
|
|
|
enable = lib.mkEnableOption "git";
|
2024-05-18 20:22:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-05-20 21:15:16 +02:00
|
|
|
myConfig.git.lazygit.enable = lib.mkDefault true;
|
2024-05-18 20:22:28 +02:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|