nix/home-manager/shared/programs/shell/git.nix
2025-04-03 01:16:58 -05:00

51 lines
1 KiB
Nix
Executable file

{pkgs, ...}: {
programs.git = {
enable = true;
userEmail = "cjriddz@protonmail.com";
userName = "iofq";
delta = {
enable = true;
options = {
side-by-side = true;
line-numbers = true;
};
};
extraConfig = {
core.editor = "nvim";
};
signing = {
key = "cjriddz@protonmail.com";
signByDefault = false;
};
extraConfig.pull.rebase = true;
aliases = {
a = "add . -p";
s = "status";
f = "fetch";
d = "diff";
cm = "commit -m";
rb = "rebase -i";
};
};
programs.jujutsu = {
enable = true;
settings = {
user = {
email = "cjriddz@protonmail.com";
name = "iofq";
};
ui = {
pager = "${pkgs.bat}/bin/bat";
default-command = ["log"];
conflict-marker-style = "git";
merge-editor = "vimdiff";
};
snapshot = {
max-new-file-size = "10MiB";
};
git = {
subprocess = true;
};
};
};
}