nix-config/modules/features/programs/cli/vc-jujutsu.nix
2026-04-16 14:26:18 -04:00

119 lines
2.7 KiB
Nix

{ ... }:
{
config.dendritic.features.jujutsu = {
homeModules = [
(
{ pkgs, ... }:
{
programs.jujutsu = {
enable = true;
settings = {
user = {
email = "gwg313@pm.me";
name = "gwg313";
};
signing = {
behavior = "own";
backend = "gpg";
};
aliases = {
c = [ "commit" ];
ci = [
"commit"
"--interactive"
];
e = [ "edit" ];
i = [
"git"
"init"
"--colocate"
];
tug = [
"bookmark"
"move"
"--from"
"closest_bookmark(@-)"
"--to"
"@-"
];
log-recent = [
"log"
"-r"
"default() & recent()"
];
nb = [
"bookmark"
"create"
"-r"
"@-"
]; # new bookmark
upmain = [
"bookmark"
"set"
"main"
];
squash-desc = [
"squash"
"::@"
"-d"
"@"
];
rebase-main = [
"rebase"
"-d"
"main"
];
amend = [
"describe"
"-m"
];
pushall = [
"git"
"push"
"--all"
];
push = [
"git"
"push"
"--allow-new"
];
pull = [
"git"
"fetch"
];
dmain = [
"diff"
"-r"
"main"
];
l = [
"log"
"-T"
"builtin_log_compact"
];
lf = [
"log"
"-r"
"all()"
];
r = [ "rebase" ];
s = [ "squash" ];
si = [
"squash"
"--interactive"
];
};
};
};
home.packages = with pkgs; [
lazyjj
meld
];
}
)
];
};
}