Merge tig with git module

This makes sense since I wouldn't use git without tig.
This commit is contained in:
Donovan Glover 2023-05-24 11:38:52 -04:00
parent 53d7a10509
commit 5a71c25c57
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 24 additions and 24 deletions

View File

@ -11,7 +11,6 @@
./neovim
./ranger
./starship
./tig
];
environment.systemPackages = with pkgs; [

View File

@ -1,37 +1,50 @@
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.git ];
environment.systemPackages = with pkgs; [ tig git ];
home-manager.sharedModules = [{
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; };
include.path = "~/.gituser";
commit.gpgsign = true;
core = {
editor = "nvim";
autocrlf = false;
quotePath = false;
};
web = { browser = "librewolf"; };
push = { default = "simple"; };
branch = { autosetuprebase = "always"; };
init = { defaultBranch = "master"; };
rerere = { enabled = true; };
color = { ui = true; };
web.browser = "librewolf";
push.default = "simple";
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";
};
"color \"diff\"" = {
meta = "yellow";
frag = "magenta bold";
@ -41,7 +54,8 @@
whitespace = "red reverse";
};
};
diff-so-fancy = { enable = true; };
diff-so-fancy.enable = true;
};
}];
}

View File

@ -1,13 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.tig ];
home-manager.sharedModules = [{
xdg.configFile."tig/config".text = ''
color cursor black green bold
color title-focus black blue bold
color title-blur black blue bold
'';
}];
}