nix flake update.

This commit is contained in:
Gabe Venberg 2025-11-24 21:37:28 +01:00
parent b1d6810663
commit 0d49140848
5 changed files with 49 additions and 47 deletions

View file

@ -28,26 +28,28 @@
};
config = lib.mkIf config.user.git.enable {
programs.delta = {
enable = true;
options = {
side-by-side = true;
line-numbers = true;
};
};
programs.git = {
enable = true;
aliases = {
tree = "log-long-line --graph --topo-order --all --simplify-by-decoration";
hist = "log-long-line --graph --date-order --date=short";
graph = "log-long-line --graph --topo-order --all";
log-long-line = "log --pretty=format:'%C(auto)%h %C(cyan)%an %C(blue)%ar %C(auto)%d %s'";
recent = "branch --sort=-committerdate --format='%(committerdate:relative)%09%(refname:short)'";
track = "add -AN";
};
delta = {
enable = true;
options = {
side-by-side = true;
line-numbers = true;
settings = {
aliases = {
tree = "log-long-line --graph --topo-order --all --simplify-by-decoration";
hist = "log-long-line --graph --date-order --date=short";
graph = "log-long-line --graph --topo-order --all";
log-long-line = "log --pretty=format:'%C(auto)%h %C(cyan)%an %C(blue)%ar %C(auto)%d %s'";
recent = "branch --sort=-committerdate --format='%(committerdate:relative)%09%(refname:short)'";
track = "add -AN";
};
user = {
email = config.user.git.profile.email;
name = config.user.git.profile.name;
};
};
userEmail = config.user.git.profile.email;
userName = config.user.git.profile.name;
extraConfig = {
core.hooksPath = ".githooks";
init.defaultBranch = "main";
push = {