nixos/home/git/common.nix

34 lines
892 B
Nix
Raw Normal View History

{pkgs, ...}: {
imports = [../env/bat.nix];
xdg.configFile."git/tokyonight_storm.gitconfig".source =
pkgs.fetchFromGitHub
{
owner = "folke";
repo = "tokyonight.nvim";
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
}
+ "/extras/delta/tokyonight_storm.gitconfig";
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
includes = [{path = "tokyonight_storm.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";
};
};
}