2023-09-17 08:57:08 +01:00
|
|
|
{ lib, pkgs, catppuccin-themes, gitui, ... }: {
|
2023-09-07 08:48:42 +01:00
|
|
|
programs = {
|
|
|
|
git = {
|
2023-04-25 16:27:54 +01:00
|
|
|
enable = true;
|
2023-09-07 08:48:42 +01:00
|
|
|
package = pkgs.gitFull;
|
|
|
|
userName = "Evie Litherland-Smith";
|
|
|
|
userEmail = lib.mkDefault "evie@xenia.me.uk";
|
|
|
|
delta = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
blame-code-style = "syntax";
|
|
|
|
line-numbers = true;
|
|
|
|
navigate = true;
|
|
|
|
side-by-side = true;
|
|
|
|
syntax-theme = "Catppuccin";
|
|
|
|
zero-style = "dim syntax";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
extraConfig = {
|
|
|
|
pull.rebase = false;
|
|
|
|
init.defaultBranch = "main";
|
2023-09-30 09:27:43 +01:00
|
|
|
credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret";
|
2023-05-28 15:12:46 +01:00
|
|
|
};
|
2023-04-25 16:27:54 +01:00
|
|
|
};
|
2023-09-07 08:48:42 +01:00
|
|
|
gitui = {
|
|
|
|
enable = true;
|
2023-09-17 08:57:08 +01:00
|
|
|
keyConfig = builtins.readFile "${gitui}/vim_style_key_config.ron";
|
2023-09-07 08:48:42 +01:00
|
|
|
theme = builtins.readFile catppuccin-themes.gitui;
|
2023-04-23 14:46:59 +01:00
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
bat = {
|
|
|
|
enable = true;
|
|
|
|
config.theme = "Catppuccin";
|
|
|
|
themes.Catppuccin = builtins.readFile catppuccin-themes.bat;
|
|
|
|
};
|
2023-04-23 14:46:59 +01:00
|
|
|
};
|
|
|
|
}
|