nixos/home/git/common.nix
Evie Litherland-Smith 36f2f5a102 Add tokyonight theme
Add tokyonight theme to fish and bat (and by extension delta)
Add extra zsh features
2023-05-28 15:12:46 +01:00

33 lines
857 B
Nix

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