nixos/home/git/default.nix
Evie Litherland-Smith 22929fa5d8 Add gpg and password-store to Monarch
Only set git credential.helper if using password-store
2023-08-31 08:21:21 +01:00

27 lines
726 B
Nix

{ lib, pkgs, tokyonight, ... }: {
xdg.configFile."git/tokyonight_night.gitconfig".source =
"${tokyonight}/extras/delta/tokyonight_night.gitconfig";
programs.git = {
enable = true;
package = pkgs.gitFull;
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";
};
};
}