From 0c5c878754d83620b32abfbf2fe53b557a356e8f Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Tue, 24 Mar 2026 14:35:09 +0100 Subject: wrappers: wrap jujutsu --- wrappers/jujutsu/config.nix | 35 +++++++++++++++++++++++++++++++++++ wrappers/jujutsu/default.nix | 12 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 wrappers/jujutsu/config.nix create mode 100644 wrappers/jujutsu/default.nix (limited to 'wrappers') diff --git a/wrappers/jujutsu/config.nix b/wrappers/jujutsu/config.nix new file mode 100644 index 0000000..44021a0 --- /dev/null +++ b/wrappers/jujutsu/config.nix @@ -0,0 +1,35 @@ +{ + 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" + "@-" + ]; +} diff --git a/wrappers/jujutsu/default.nix b/wrappers/jujutsu/default.nix new file mode 100644 index 0000000..3324c39 --- /dev/null +++ b/wrappers/jujutsu/default.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +let + tomlFormat = pkgs.formats.toml { }; + config = import ./config.nix; + tomlConfig = tomlFormat.generate "jujutsu-config" config; +in +{ + wrappers.jujutsu = { + basePackage = pkgs.jujutsu; + env.JJ_CONFIG.value = tomlConfig; + }; +} -- cgit v1.3.1