This commit is contained in:
gwg313 2026-04-16 13:41:27 -04:00
parent f0bd49e0b6
commit 2b0d0ce8d8
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
2 changed files with 120 additions and 0 deletions

View file

@ -76,6 +76,7 @@
];
developer.features = [
"jujutsu"
"developer-cli"
"editor-neovim"
"containers-podman"

View file

@ -0,0 +1,119 @@
{ ... }:
{
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
];
}
)
];
};
}