nixos/home/git/default.nix
Evie Litherland-Smith e2c9d8eba7 Use custom neovim flake, centralise tokyonight source
nvim repo has been converted to flake for easier inclusion but still
stand-alone for non-nix systems

Move tokyonight repo fetch to flake input to keep consistent and reduce
multiple fetch calls
2023-07-24 13:27:05 +01:00

25 lines
664 B
Nix

{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 = {
pull.rebase = false;
init.defaultBranch = "main";
credential.helper = "store";
};
};
}