2023-10-15 16:41:34 -04:00
|
|
|
# Home-manager module
|
|
|
|
|
|
|
|
{ pkgs, ... }: {
|
|
|
|
programs = {
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
|
|
|
|
userName = "matt1432";
|
|
|
|
userEmail = "matt@nelim.org";
|
|
|
|
|
|
|
|
includes = [
|
|
|
|
{ path = "${pkgs.dracula-theme}/git-colors"; }
|
|
|
|
];
|
2023-10-20 16:22:28 -04:00
|
|
|
|
|
|
|
delta = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
side-by-side = true;
|
|
|
|
line-numbers-zero-style = "#E6EDF3"; #BD93F9";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://github.com/dandavison/delta/issues/630#issuecomment-860046929
|
|
|
|
extraConfig.pager = let
|
|
|
|
cmd = "LESS='LRc --mouse' ${pkgs.delta}/bin/delta";
|
|
|
|
in {
|
|
|
|
diff = cmd;
|
|
|
|
show = cmd;
|
|
|
|
stash = cmd;
|
|
|
|
log = cmd;
|
|
|
|
reflog = cmd;
|
|
|
|
};
|
2023-10-15 16:41:34 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|