nixos/home/git/default.nix

25 lines
664 B
Nix
Raw Normal View History

{tokyonight, ...}: {
xdg.configFile."git/tokyonight_night.gitconfig".source = "${tokyonight}/extras/delta/tokyonight_night.gitconfig";
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
includes = [{path = "tokyonight_night.gitconfig";}];
delta = {
enable = true;
options = {
blame-code-style = "syntax";
line-numbers = true;
navigate = true;
side-by-side = true;
syntax-theme = "tokyonight";
zero-style = "dim syntax";
};
};
extraConfig = {
2023-04-26 16:12:22 +01:00
pull.rebase = false;
init.defaultBranch = "main";
2023-05-28 19:18:03 +01:00
credential.helper = "store";
};
};
}