Home

dotnix @7dd6f21debb7732b02352ac3abf525ff29b928a1 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / apps / nogui / jj.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ pkgs, ... }:
{
  programs.jujutsu = {
    enable = true;
    settings = {
      user = {
        name = "jolheiser";
        email = "git@jolheiser.com";
      };
      ui = {
        diff.tool = [
          "${pkgs.difftastic}/bin/difft"
          "--color=always"
          "$left"
          "$right"
        ];
        editor = "hx";
        paginate = "never";
        default-command = "log";
      };
      git.push-bookmark-prefix = "change/";
      signing = {
        sign-all = true;
        backend = "ssh";
        key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAUxLwkJOlalAHTdkbh+m49XTZGKDqWz1o/o8OLmtQdX";
      };
      revsets.log = "ancestors(present(@), 5) | ancestors(immutable_heads().., 2) | present(trunk())";
      aliases = {
        push = [
          "util"
          "exec"
          "git"
          "push"
          "origin"
          "main"
        ];
        fetch = [
          "util"
          "exec"
          "git"
          "fetch"
          "origin"
        ];
      };
    };
  };
}