mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
a1b9cf218d
Long-term this should make it easy to include all the GUI programs with the desktop module and all the CLI programs with the shell module, as well as the ability to easily disable sets of unneeded packages.
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
home.packages = builtins.attrValues {
|
|
inherit (pkgs) tig mgitstatus;
|
|
};
|
|
|
|
xdg.configFile."tig/config".text = ''
|
|
color cursor black green bold
|
|
color title-focus black blue bold
|
|
color title-blur black blue bold
|
|
'';
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
|
|
extraConfig = {
|
|
include.path = "~/.gituser";
|
|
commit.gpgsign = true;
|
|
|
|
core = {
|
|
editor = "nvim";
|
|
autocrlf = false;
|
|
quotePath = false;
|
|
};
|
|
|
|
web.browser = "librewolf";
|
|
push.default = "simple";
|
|
pull.rebase = true;
|
|
branch.autosetuprebase = "always";
|
|
init.defaultBranch = "master";
|
|
rerere.enabled = true;
|
|
color.ui = true;
|
|
|
|
alias = {
|
|
contrib = "shortlog -n -s";
|
|
remotes = "remote -v";
|
|
praise = "blame";
|
|
verify = "log --show-signature";
|
|
};
|
|
|
|
"color \"diff-highlight\"" = {
|
|
oldNormal = "red bold";
|
|
oldHighlight = "red bold";
|
|
newNormal = "green bold";
|
|
newHighlight = "green bold ul";
|
|
};
|
|
|
|
"color \"diff\"" = {
|
|
meta = "yellow";
|
|
frag = "magenta bold";
|
|
commit = "yellow bold";
|
|
old = "red bold";
|
|
new = "green bold";
|
|
whitespace = "red reverse";
|
|
};
|
|
};
|
|
|
|
diff-so-fancy.enable = true;
|
|
};
|
|
}
|