nixbook: more git config, rerere

This commit is contained in:
tristan 2024-10-24 11:01:38 +01:00
parent 3bae7dc77c
commit 5df2f606da
2 changed files with 14 additions and 2 deletions

View file

@ -1,7 +1,16 @@
{pkgs, ...}: {
{
pkgs,
lib,
config,
...
}: {
programs.git = {
enable = true;
extraConfig = {
rerere.enabled = true;
};
aliases = {
ui = "!lazygit";
graph = "log --oneline --all --graph";
amend = "commit --amend --no-edit";
sdiff = "diff --staged";
@ -38,4 +47,8 @@
enable = true;
};
};
programs.lazygit = {
enable = true;
};
}