nixos/home/git/default.nix
Evie Litherland-Smith 23f74093d8 Rewrite to simplify some home-manager setup
Remove work.nix variants of expressions
Better use of defaults across all machines

Set TERM env to xterm-256color for ssh connections by default
2023-08-07 10:00:57 +01:00

26 lines
723 B
Nix

{ lib, tokyonight, ... }: {
xdg.configFile."git/tokyonight_night.gitconfig".source = "${tokyonight}/extras/delta/tokyonight_night.gitconfig";
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
userEmail = lib.mkDefault "evie@xenia.me.uk";
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";
};
};
}