{ config, ... }:
{
  programs.jujutsu = {
    enable = true;
    settings = {
      user.name = config.programs.git.userName;
      user.email = config.programs.git.userEmail;
    };
  };
}
home-manager

By default executing jj just prints the log, which is nice. It also prints this warning, which is not nice:

$ jj
Hint: Use `jj -h` for a list of available commands.
Run `jj config set --user ui.default-command log` to disable this message.

Let’s fix that:

{
  programs.jujutsu.settings.ui.default-command = "log";
}