feat(jj): add difft as default diff

This commit is contained in:
Moritz Böhme 2025-08-01 20:27:20 +02:00
parent 6125c37e2a
commit e6cae70857
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9

View file

@ -11,6 +11,9 @@ in {
options.my.profiles.jujutsu.enable = mkEnableOption "jujutsu profile";
config = mkIf cfg.enable {
users.users.moritz.packages = with pkgs; [
difftastic
];
home-manager.users.moritz.programs.jujutsu = {
enable = true;
package = inputs.jj.packages.${pkgs.system}.default;
@ -19,9 +22,12 @@ in {
email = "mail@moritzboeh.me";
name = "Moritz Böhme";
};
ui.pager.command = ["less" "-FRX"];
ui.pager.env.LESSCHARSET = "utf-8";
ui.default-command = "log";
ui = {
pager.command = ["less" "-FRX"];
pager.env.LESSCHARSET = "utf-8";
default-command = "log";
diff-formatter = ["difft" "--color=always" "$left" "$right"];
};
signing = {
behavior = "drop";
backend = "gpg";