Evie Litherland-Smith
f58fe209d8
Move bat expression to separate file to be imported by git (for delta syntax highlighting) Move gitui from tui/default.nix to git/default.nix
37 lines
1,022 B
Nix
37 lines
1,022 B
Nix
{ lib, pkgs, catppuccin-themes, ... }: {
|
|
imports = [ ../tui/bat.nix ];
|
|
programs = {
|
|
git = {
|
|
enable = true;
|
|
package = pkgs.gitFull;
|
|
userName = "Evie Litherland-Smith";
|
|
userEmail = lib.mkDefault "evie@xenia.me.uk";
|
|
delta = {
|
|
enable = true;
|
|
options = {
|
|
blame-code-style = "syntax";
|
|
line-numbers = true;
|
|
navigate = true;
|
|
side-by-side = true;
|
|
syntax-theme = "Catppuccin";
|
|
zero-style = "dim syntax";
|
|
};
|
|
};
|
|
extraConfig = {
|
|
pull.rebase = false;
|
|
init.defaultBranch = "main";
|
|
};
|
|
};
|
|
gitui = {
|
|
enable = true;
|
|
keyConfig = builtins.readFile (pkgs.fetchFromGitHub {
|
|
owner = "extrawurst";
|
|
repo = "gitui";
|
|
rev = "8f7f35b8a97e38a0e181032285554cd0961d588e";
|
|
sha256 = "sha256-zJDf6WhaUe8QTPCoVAdfCdUvYEcQpm2qddQiKw41kjY=";
|
|
} + "/vim_style_key_config.ron");
|
|
theme = builtins.readFile catppuccin-themes.gitui;
|
|
};
|
|
};
|
|
}
|