nix-config/programs/jujutsu/default.nix

60 lines
1 KiB
Nix
Raw Normal View History

{ ... }:
let
MyAliases = {
l = [
"log"
"-r"
"ancestors(reachable(@, mutable()), 2)"
];
n = [ "new" ];
tug = [
"bookmark"
"move"
"--from"
"closest_bookmark(@-)"
"--to"
"@-"
];
};
in
{
programs.jujutsu = {
enable = true;
settings = {
aliases = MyAliases;
gerrit.enabled = false;
git = {
subprocess = true;
};
signing = {
key = "~/.ssh/id_ed25519.pub";
};
templates = {
2025-10-05 19:22:16 -07:00
git_push_bookmark = "\"softinio/push-\" ++ change_id.short()";
};
ui = {
default-command = "l";
2025-06-14 10:08:22 -07:00
diff-formatter = [
"difft"
"--color=always"
"$left"
"$right"
];
editor = "nvim";
merge-editor = [
"idea"
"$left"
"$right"
"$base"
"$output"
];
pager = "less -FRX";
};
user = {
name = "Salar Rahmanian";
email = "code@softinio.com";
};
};
};
}