aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/jujutsu.nix
blob: 9904a421df0059bfd83da067bdb76ea1324c1eaf (plain)
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
{ ... }:
{
  programs.jujutsu.settings = {
    user = {
      email = "isabella@sorre.xyz";
      name = "Isabella Bastaja";
    };
    ui.paginate = "never";
    signing = {
      behavior = "own";
      backend = "gpg";
      key = "isabella@sorre.xyz";
      backends.gpg.allow-expired-keys = false;
    };
    git = {
      sign-on-push = true;
      private-commits = "description(glob:'private:*')";
      write-change-id-header = true;
    };

    # `jj l` shows commits on the working-copy commit's (anonymous) branch
    # compared to the `main` branch
    aliases.l = [
      "log"
      "-r"
      "(main..@):: | (main..@)-"
    ];

    aliases.tug = [
      "bookmark"
      "move"
      "--from"
      "heads(::@- & bookmarks())"
      "--to"
      "@-"
    ];
  };
  programs.delta.enableJujutsuIntegration = true;
}