2023-08-28 16:07:58 +01:00
|
|
|
{ lib, pkgs, tokyonight, ... }: {
|
|
|
|
xdg.configFile."git/tokyonight_night.gitconfig".source =
|
|
|
|
"${tokyonight}/extras/delta/tokyonight_night.gitconfig";
|
2023-04-23 14:46:59 +01:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2023-08-28 16:07:58 +01:00
|
|
|
package = pkgs.gitFull;
|
2023-04-23 14:46:59 +01:00
|
|
|
userName = "Evie Litherland-Smith";
|
2023-08-07 10:00:57 +01:00
|
|
|
userEmail = lib.mkDefault "evie@xenia.me.uk";
|
|
|
|
includes = [{ path = "tokyonight_night.gitconfig"; }];
|
2023-04-25 16:27:54 +01:00
|
|
|
delta = {
|
|
|
|
enable = true;
|
2023-05-28 15:12:46 +01:00
|
|
|
options = {
|
|
|
|
blame-code-style = "syntax";
|
|
|
|
line-numbers = true;
|
|
|
|
navigate = true;
|
|
|
|
side-by-side = true;
|
|
|
|
syntax-theme = "tokyonight";
|
|
|
|
zero-style = "dim syntax";
|
|
|
|
};
|
2023-04-25 16:27:54 +01:00
|
|
|
};
|
2023-04-23 14:46:59 +01:00
|
|
|
extraConfig = {
|
2023-04-26 16:12:22 +01:00
|
|
|
pull.rebase = false;
|
|
|
|
init.defaultBranch = "main";
|
2023-08-28 16:07:58 +01:00
|
|
|
credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret";
|
2023-04-23 14:46:59 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|